|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27595 throw new Exception() crash
Submitted: 2004-03-14 08:47 UTC Modified: 2004-04-08 16:42 UTC
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:4 (100.0%)
From: tom at webcrumb dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.0b4 (beta4) OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
15 + 1 = ?
Subscribe to this entry?

 [2004-03-14 08:47 UTC] tom at webcrumb dot com
The following test code runs fine the first 29 (your mileage may vary) times the page is viewed. On the 30th time, CPU usage shoots to 100% briefly and Apache 2 crashes hard.

'30' is the magic number for my system, I imagine your mileage may vary if this is - as I suspect - some sort of memory corruption bug.

The problem appears to be with the exception handling mechanism, since I can comment all the code out, or attempt to refresh the page 50+ times with a class declaration / simple method call.

Reproduce code:

try {
	throw new Exception( 'Testing' );
catch( Exception $e ) {
	echo $e->getMessage();


Expected result:
'Testing' should appear on screen.

Actual result:
For the first 29 times the page is viewed, 'Testing' appears. On the 30th time, Apache 2 crashes hard.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-15 13:59 UTC]
Please try using this CVS snapshot:
For Windows:

 [2004-03-29 07:11 UTC] wf at bitplan dot com
5.0.0RC1 still has this bug - my mileage is "6"
 [2004-03-29 08:04 UTC] wf at bitplan dot com
You need to use Netscape to test this - IE will not ask the server to reexecute the code
 [2004-04-08 16:42 UTC]
See also #27895
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 27 04:03:37 2023 UTC