php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41005 calling Exception in shutdown_function causes Apache to crash
Submitted: 2007-04-05 12:28 UTC Modified: 2007-04-13 01:00 UTC
Votes:2
Avg. Score:2.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: maboiteaspam at gmail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.2.1 OS: Solaris 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: maboiteaspam at gmail dot com
New email:
PHP Version: OS:

 

 [2007-04-05 12:28 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-05 19:57 UTC] tony2001@php.net
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


 [2007-04-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC