|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-17 03:55 UTC] laruence@php.net
-Status: Open
+Status: Wont fix
[2013-09-17 03:55 UTC] laruence@php.net
[2013-09-17 19:47 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
Description: ------------ When ZTS is enabled, PHP 5.3 fails to compile due to conflicting declaration. (I found this by building php with multi threaded apache MPM by mistake. I haven't check if this is applicable to 5.4 or later) php-5.3/Zend/zend_language_parser.h:317:5: error: conflicting types for 'zendparse' int zendparse (void); ^ In file included from /home/yohgaki/prove-dev/php-5.3/Zend/zend_globals.h:28:0, from /home/yohgaki/prove-dev/php-5.3/Zend/zend_compile.h:342, from /home/yohgaki/prove-dev/php-5.3/Zend/zend_modules.h:26, from /home/yohgaki/prove-dev/php-5.3/Zend/zend_API.h:26, from /home/yohgaki/prove-dev/php-5.3/main/php.h:38, from /home/yohgaki/prove-dev/php- 5.3/ext/standard/basic_functions.c:22: php-5.3/Zend/zend_globals_macros.h:35:5: note: previous declaration of 'zendparse' was here int zendparse(void *compiler_globals); ^ make: *** [ext/standard/basic_functions.lo] Error 1 php-5.3/Zend/zend_language_parser.h #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int zendparse (void *YYPARSE_PARAM); #else int zendparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int zendparse (void); #else int zendparse (); #endif #endif /* ! YYPARSE_PARAM */ php-5.3/Zend/zend_globals_macros.h /* Compiler */ #ifdef ZTS # define CG(v) TSRMG(compiler_globals_id, zend_compiler_globals *, v) int zendparse(void *compiler_globals); #else # define CG(v) (compiler_globals.v) extern ZEND_API struct _zend_compiler_globals compiler_globals; int zendparse(void); #endif