SWIG generated code fails to run on PHP 5.3.2 undefined symbol: zend_error_noreturn

Posted by wookiebreath on Stack Overflow See other posts from Stack Overflow or by wookiebreath
Published on 2010-03-31T20:08:17Z Indexed on 2010/06/15 23:32 UTC
Read the original article Hit count: 487

Filed under:
|
|
|

I have a library that I have been using successfully with PHP 5.1.6 with the help of some wrapper code generated by SWIG (v1.3.40).

I have just upgraded to PHP 5.3.2 and I am seeing the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/myLib_php.so' - /usr/lib/php/modules/myLib_php.so: undefined symbol: zend_error_noreturn in Unknown on line 0 

On investigation it appears that the wrapper code produced by SWIG (myLib_wrap.c) includes calls to the PHP function: zend_error_noreturn and that this function isn't available in PHP 5.3.2?

Has anyone seen this issue before? Things seem to work if I manually update the generated code so that instead of calling zend_error_noreturn it just calls zend_error. Is this approach safe?

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework