Re: Extension silently fails

From: Date: Thu, 22 Sep 2005 14:38:51 +0000
Subject: Re: Extension silently fails
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-19127@lists.php.net to get a copy of this message
David Olsson wrote: > Hello all! > > Not really sure if this is posted in the correct newsgroup. If not, > please just ignore my post... :-) > > Anyhow, I have a strange problem with a PHP extension I have written in > C++. It builds fine and it also runs fine when I use it with the PHP > CLI. When I use it from Apache 2, it simply fails with the following > error in the Apache error log: > > [Thu Sep 22 16:13:06 2005] [notice] child pid 4151 exit signal Aborted (6) > > Otherwise, PHP works fine with Apache 2. All I need to do is comment out > the lines which use functions in my extension. > > What could be the difference between running the PHP CLI and PHP as a > Apache 2 module? They both use the same php.ini file. Is there any way > of getting something more in the log from PHP? Run Apache under gdb and get a backtrace from that abort to see where that is happening. -Rasmus

« previous php.internals (#19127) next »