Skip to content

Commit 4754d30

Browse files
committed
Fix #19307: PGO builds of shared ext-intl are broken
We resolve the name mangling issue by including the right header file inside an `extern "C"` declaration. Closes GH-19310.
1 parent 8538e2f commit 4754d30

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ PHP NEWS
66
. Fixed bug GH-19305 (Operands may be being released during comparison).
77
(Arnaud)
88

9+
- Intl:
10+
. Fixed bug GH-19307 (PGO builds of shared ext-intl are broken). (cmb)
11+
912
- Opcache:
1013
. Fixed bug GH-19301 (opcache build failure). (Remi)
1114

ext/intl/idn/idn.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
#include <config.h>
2121
#endif
2222

23-
#include <php.h>
24-
23+
extern "C" {
24+
#include "../php_intl.h"
25+
}
2526
#include <unicode/uidna.h>
2627
#include <unicode/ustring.h>
2728

0 commit comments

Comments
 (0)