Skip to content

Commit ccffec7

Browse files
committed
Fix bug #62651: source level BC break
Break for C++ extensions that don't wrap the includes of PHP libraries in extern "C" {.
1 parent 7d890ee commit ccffec7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_string.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323

2424
#include "zend.h"
2525

26+
BEGIN_EXTERN_C()
2627
ZEND_API extern const char *(*zend_new_interned_string)(const char *str, int len, int free_src TSRMLS_DC);
2728
ZEND_API extern void (*zend_interned_strings_snapshot)(TSRMLS_D);
2829
ZEND_API extern void (*zend_interned_strings_restore)(TSRMLS_D);
2930

3031
void zend_interned_strings_init(TSRMLS_D);
3132
void zend_interned_strings_dtor(TSRMLS_D);
33+
END_EXTERN_C()
3234

3335
#ifndef ZTS
3436

0 commit comments

Comments
 (0)