Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62130 invoked by uid 1010); 24 May 2006 10:28:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62115 invoked from network); 24 May 2006 10:28:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2006 10:28:18 -0000 X-PHP-List-Original-Sender: nabeel@wso2.com X-Host-Fingerprint: 209.68.5.17 relay03.pair.com Received: from ([209.68.5.17:4448] helo=relay03.pair.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 70/81-19568-24534744 for ; Wed, 24 May 2006 06:28:18 -0400 Received: (qmail 27612 invoked from network); 24 May 2006 10:28:14 -0000 Received: from unknown (HELO ?192.168.1.238?) (unknown) by unknown with SMTP; 24 May 2006 10:28:14 -0000 X-pair-Authenticated: 222.165.179.156 Message-ID: <44742E5E.3000905@wso2.com> Date: Wed, 24 May 2006 15:58:54 +0600 User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Unable to load DSO's when using embed sapi module From: nabeel@wso2.com (Nabeel) 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