php.net |  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: yohgaki@php.net Assigned:
Status: Wont fix Package: Compile Failure
PHP Version: 5.5Git-2013-09-16 (Git) OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yohgaki@php.net
New email:
PHP Version: OS:

 

 [2013-09-16 20:15 UTC] yohgaki@php.net
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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-17 03:55 UTC] laruence@php.net
-Status: Open +Status: Wont fix
 [2013-09-17 03:55 UTC] laruence@php.net
please use a older version bison.
 [2013-09-17 19:47 UTC] yohgaki@php.net
Ok. Thanks. I'll try it later.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 10:01:28 2024 UTC