[PHP-DEV] PHP 4.0 Bug #5882: Use inline directive in *.c files for global functions in Zend engine From: mbaturin <email protected>
Date: 07/31/00

From: mbaturin <email protected>
Operating system: SGI Irix 6.5.8
PHP version: 4.0.1pl2
PHP Bug Type: Other
Bug description: Use inline directive in *.c files for global functions in Zend engine

In Zend engine uses a inline modificator for functions which uses globaly, not only in module, where it was define.
Compiller say - no errors, becouse thats functions defined in *.h file as global, but implementation this function defined as inline - and after compiling to *.o object file cc compiler remove this function from global lists (marked as LOCAL)
And in result engine didn't started
when try to run httpd with dinamicly linked libphp4.so:
#dbx /usr/local/apache/bin/httpd
>run -X -f/usr/local/apache/conf/httpd.conf
all OK
but when we make request to *.php file from browser dbx say:
Error: unable to resolve _array_init function...
and httpd process down to core
#nm libphp4.so
show that this function have status UNDEF
Solve this bug with this script:
#!/bin/sh
cd php-4.0.1pl2/Zend
for i in `grep -l "ZEND_API inline" *.c` ; do
    mv $i $i.old
    sed -e 's/ZEND_API inline/ZEND_API/g' $i.old >$i
 done
 #end of script
After recompile - all OK

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>