Unable to load DSO's when using embed sapi module
| From: | Nabeel | Date: | Wed, 24 May 2006 09:58:54 +0000 |
| Subject: | Unable to load DSO's when using embed sapi module | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-23626@lists.php.net to get a copy of this message | ||
Hi,
I want to call PHP code from C. So, I compiled sapi/embed module with my PHP 5.1.4 source (--enable-embed=static). It works fine when I access standard PHP functions. When any .so file (e.g.: axis2.so) is dynamically loaded to PHP, it gives the following error when I run my test C code. (this happens with other DSO's as well.)
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/ext/axis2.so' - /usr/local/lib/php/ext/axis2.so: undefined symbol: _zval_ptr_dtor in Unknown on line 0
axis2.so works fine thourgh cli and apache interfaces. I wonder whether I am missing something. Any help is greatly appreciated.
Thanks,
-Nabeel