#41005 [Opn->Fbk]: calling Exception in shutdown_function causes Apache to crash
| From: | tony2001@php.net | Date: | Thu, 05 Apr 2007 19:57:44 +0000 |
| Subject: | #41005 [Opn->Fbk]: calling Exception in shutdown_function causes Apache to crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111159@lists.php.net to get a copy of this message | ||
ID: 41005
Updated by: tony2001@php.net
Reported By: maboiteaspam at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Solaris 8
PHP Version: 5.2.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2007-04-05 12:28:55] maboiteaspam at gmail dot com
Description:
------------
If you call register_shutdown_function, and then in the registered
function make a call to PHP Exception, Apache segfaults.
Here's a sample script:
Reproduce code:
---------------
class DodService
{
private $connexion;
function __construct()
{
register_shutdown_function(array($this, "out"));
}
function out()
{
throw new SoapFault("ERROR", "Internal Server Error.");
return true;
}
}
Actual result:
--------------
Extract of Apache log:
[Thu Apr 05 14:15:16 2007] [error] [client xxx.xxx.xxx.xxx] PHP Fatal
error: Exception thrown without a stack frame in Unknown on line 0
[Thu Apr 05 14:15:16 2007] [notice] child pid 11357 exit signal
Segmentation fault (11)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41005&edit=1