From:             yohgaki
Operating system: any
PHP version:      5.5Git-2013-09-16 (Git)
Package:          Compile Failure
Bug Type:         Bug
Bug description:PHP 5.3 git fails to compile with ZTS

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



-- 
Edit bug report at https://bugs.php.net/bug.php?id=65685&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65685&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65685&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65685&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65685&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65685&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65685&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65685&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65685&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65685&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65685&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65685&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65685&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65685&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65685&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65685&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65685&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65685&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65685&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65685&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65685&r=mysqlcfg

Reply via email to