Re: problem using extension.
| From: | Ernest E Vogelsinger | Date: | Mon, 03 Mar 2003 10:29:14 +0000 |
| Subject: | Re: problem using extension. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137867@lists.php.net to get a copy of this message | ||
At 10:35 03.03.2003, Joe Wong said:
--------------------[snip]--------------------
> My last posting was interrupted. The details are here:
>
>I have created an extension on top of a C++ library
>If I put the module name into php.ini extension=XYZ, apache failed to load
>If I try to use 'dl' to load the libary in a PHP page, I got 'child exist
>segementation fault' in /var/log/httpd/error_log
>
>I am sure the C++ library is running ok as I have a test program that make
>use of it. I just don't know how I can make it work with PHP..
--------------------[snip]--------------------
Sounds as if there was some problem in the extensions initialization code.
I'd try to put some debugging in there (write to a file, flush and close
it) so you can see how far your extension executes until the segfault.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/