php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27252 Exception handling crashes Apache 2 after a couple of reloads
Submitted: 2004-02-14 06:11 UTC Modified: 2004-02-15 04:19 UTC
From: jw at jwscripts dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 5.0.0b4 (beta4) OS: Windows XP
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: jw at jwscripts dot com
New email:
PHP Version: OS:

 

 [2004-02-14 06:11 UTC] jw at jwscripts dot com
Description:
------------
The Exception implementation appears buggy under Win XP with Apache 2. When the reproduce code is run a couple of time by refreshing the browser (IE 6 SP2), Apache 2 crashes.

Log book entries:

Crashed application: Apache.exe, version: 2.0.48.0, 
Crashed module: php5ts.dll, version: 5.0.0.0,
Crashed upon: 0x0003d0ba.


Reproduce code:
---------------
<?

class UserException extends Exception {
	public $message;

	public function __construct ($message) {
		$this->message = $message;
	}
}

try {
	throw new UserException("Unknown error");
} catch (UserException $ue) {
	echo "Error: $ue->message, at line: ", $ue->getLine(), " in file: ", $ue->getFile();
}

?>

Expected result:
----------------
Error: Unknown error, at line: [...] in file: [...]

Actual result:
--------------
Crash of Apache 2 after a couple of reloads


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-14 10:50 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

And remove all PHP related dlls first! (especially php5ts.dll)

 [2004-02-15 04:19 UTC] jw at jwscripts dot com
The problem seems to be related to the installation; I upgraded from one of the latest developer branches to beta 4, without rebooting Windows.

This probably left the previous version of php5ts.dll resident in memory. This morning, after booting Windows, I was unable to reproduce the bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 22:01:29 2024 UTC