|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65685 PHP 5.3 git fails to compile with ZTS
Submitted: 2013-09-16 20:15 UTC Modified: 2013-09-17 19:47 UTC
From: Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 5.5Git-2013-09-16 (Git) OS: any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-09-16 20:15 UTC]
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 
 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-
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


#if defined __STDC__ || defined __cplusplus
int zendparse (void *YYPARSE_PARAM);
int zendparse ();
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int zendparse (void);
int zendparse ();
#endif /* ! YYPARSE_PARAM */


/* Compiler */
#ifdef ZTS
# define CG(v) TSRMG(compiler_globals_id, zend_compiler_globals *, v)
int zendparse(void *compiler_globals);
# define CG(v) (compiler_globals.v)
extern ZEND_API struct _zend_compiler_globals compiler_globals;
int zendparse(void);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-17 03:55 UTC]
-Status: Open +Status: Wont fix
 [2013-09-17 03:55 UTC]
please use a older version bison.
 [2013-09-17 19:47 UTC]
Ok. Thanks. I'll try it later.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Sep 27 18:05:57 2022 UTC