#27595 [Fbk->NoF]: throw new Exception() crash
| From: | iliaa@php.net | Date: | Tue, 23 Mar 2004 23:20:04 +0000 |
| Subject: | #27595 [Fbk->NoF]: throw new Exception() crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-56731@lists.php.net to get a copy of this message | ||
ID: 27595
Updated by: iliaa@php.net
Reported By: tom at webcrumb dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: Windows XP
PHP Version: 5.0.0b4 (beta4)
Previous Comments:
------------------------------------------------------------------------
[2004-03-15 13:59:59] 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
------------------------------------------------------------------------
[2004-03-14 08:47:25] tom at webcrumb dot com
Description:
------------
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:
---------------
<?php
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27595&edit=1