php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44517 throw a exception make apache down
Submitted: 2008-03-24 10:57 UTC Modified: 2008-03-24 15:34 UTC
From: sskaje at gmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.3CVS-2008-03-24 (snap) OS: windows xp sp 2
Private report: No CVE-ID: None
 [2008-03-24 10:57 UTC] sskaje at gmail dot com
Description:
------------
i downloaded the php 5.3-dev and configured it work with apache 2.2.8.
But when i try to throw a exception like 
[code]
<?php
class myException extends Exception
{
  function __construct($msg, $code=0)
  {
    parent::__construct($msg, $code);
  }
}

throw new myException('a');
?>
[/code]

or

[code]
<?php
throw new exception('a');
?>
[/code]
httpd.exe reports an error:
[code]
szAppName : httpd.exe     szAppVer : 2.2.8.0     szModName : unknown     
szModVer : 0.0.0.0     offset : 00000000 
[/code]

i checked the latest apache error log:
[code]

[Mon Mar 24 18:46:01 2008] [notice] Apache/2.2.8 (Win32) configured -- resuming normal operations
[Mon Mar 24 18:46:01 2008] [notice] Server built: Jan 18 2008 00:37:19
[Mon Mar 24 18:46:01 2008] [notice] Parent: Created child process 1372
[Mon Mar 24 18:46:01 2008] [notice] Child 1372: Child process is running
[Mon Mar 24 18:46:01 2008] [notice] Child 1372: Acquired the start mutex.
[Mon Mar 24 18:46:01 2008] [notice] Child 1372: Starting 64 worker threads.
[Mon Mar 24 18:46:01 2008] [notice] Child 1372: Starting thread to listen on port 80.
Error in my_thread_global_end(): 66 threads didn't exit
[Mon Mar 24 18:52:21 2008] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Mar 24 18:52:21 2008] [notice] Apache/2.2.8 (Win32) configured -- resuming normal operations
[Mon Mar 24 18:52:21 2008] [notice] Server built: Jan 18 2008 00:37:19
[Mon Mar 24 18:52:21 2008] [notice] Parent: Created child process 3432
[Mon Mar 24 18:52:21 2008] [notice] Child 3432: Child process is running
[Mon Mar 24 18:52:21 2008] [notice] Child 3432: Acquired the start mutex.
[Mon Mar 24 18:52:21 2008] [notice] Child 3432: Starting 64 worker threads.
[Mon Mar 24 18:52:21 2008] [notice] Child 3432: Starting thread to listen on port 80.
[/code]


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-24 15:34 UTC] felipe@php.net
This already was reported. (Bug #44226)

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 09:01:31 2024 UTC