derickr/twig-ext — Issue #1: undefined symbol: zend_error_noreturn in Unknown on line 0
Author: soywiz
Created: 2012-02-05 08:32:37+00:00
State: open

I have just compiled the extension with PHP 5.3.9 and I get the following error:
"Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/twig.so' - /usr/lib64/php/modules/twig.so: undefined symbol: zend_error_noreturn in Unknown on line 0"

I have compiled with the following parameters:
phpize
./configure
make
make install

And then created a "php.d/twig.ini" file with the following contents:
; Enable twig extension module
extension=twig.so

http://stackoverflow.com/questions/2556113/swig-generated-code-fails-to-run-on-php-5-3-2-undefined-symbol-zend-error-noret

I have replaced the two "zend_error_noreturn" to "zend_error" as suggested, and now it seems to not show that error.