#27252 [Opn->Fbk]: Exception handling crashes Apache 2 after a couple of reloads

From: Date: Sat, 14 Feb 2004 15:50:21 +0000
Subject: #27252 [Opn->Fbk]: Exception handling crashes Apache 2 after a couple of reloads
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-54898@lists.php.net to get a copy of this message
 ID:               27252
 Updated by:       sniper@php.net
 Reported By:      jw at jwscripts dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: Windows XP
 PHP Version:      5.0.0b4 (beta4)
 New Comment:

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)



Previous Comments:
------------------------------------------------------------------------

[2004-02-14 06:11:03] 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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27252&edit=1


Thread (3 messages)

« previous php.bugs (#54898) next »