I hit some problems compiling a C++ extension in a non-threaded environment, because of some missing extern "C" declarations. Looks like this was previously fixed for threaded mode only. Please would someone with karma apply the following patch?

Index: zend_globals_macros.h
===================================================================
RCS file: /repository/ZendEngine2/zend_globals_macros.h,v
retrieving revision 1.22.2.1.2.2
diff -u -r1.22.2.1.2.2 zend_globals_macros.h
--- zend_globals_macros.h       18 Jul 2006 09:06:33 -0000      1.22.2.1.2.2
+++ zend_globals_macros.h       23 Jan 2007 14:57:45 -0000
@@ -34,8 +34,10 @@
 END_EXTERN_C()
 #else
 # define CG(v) (compiler_globals.v)
+BEGIN_EXTERN_C()
 extern ZEND_API struct _zend_compiler_globals compiler_globals;
 int zendparse(void);
+END_EXTERN_C()
 #endif


@@ -44,7 +46,9 @@
 # define EG(v) TSRMG(executor_globals_id, zend_executor_globals *, v)
 #else
 # define EG(v) (executor_globals.v)
+BEGIN_EXTERN_C()
 extern ZEND_API zend_executor_globals executor_globals;
+END_EXTERN_C()
 #endif

 /* Language Scanner */

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to