RE: [PHP-DEV] PHP 4.0 Bug #4994: undefined functions in zend_execute.c cause compile failure

From: Date: Tue, 13 Jun 2000 07:26:58 +0000
Subject: RE: [PHP-DEV] PHP 4.0 Bug #4994: undefined functions in zend_execute.c cause compile failure
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21185@lists.php.net to get a copy of this message
On Mon, 12 Jun 2000, David Shafer wrote: > This problem is fixed with the following: > > export CFLAGS="-ma -Dinline=" > ./configure {your options here} > > To the developers: As I understand it, the problem has to do with some > inline declarations in the Zend code. Is there any way this can be fixed in > the code, without the CFLAGS hack above? We would need to support C0x and GCC inline semantics. It is possible, but it requires a bit of work. An inline function would need to be moved to the header file where its prototype is defined. The prototype would then be replaced with: inline func(..) #if defined(C0X_INLINE_SEMANTICS) { /* function body */ } #else ; #endif The second step is to create a file which is only compiled, if GCC semantics are enabled. This file would simply define C0X_INLINE_SEMANTICS and include all header files which contain inline functions: #define C0X_INLINE_SEMANTICS #include "header1.h" .. - Sascha

« previous php.dev (#21185) next »