derickr / twig-ext

Extension for dropping into Twig
31 stars 4 forks source link

undefined symbol: zend_error_noreturn in Unknown on line 0 #1

Open soywiz opened 12 years ago

soywiz commented 12 years ago

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.