From:             tom at webcrumb dot com
Operating system: Windows XP
PHP version:      5.0.0b4 (beta4)
PHP Bug Type:     Zend Engine 2 problem
Bug description:  throw new Exception() crash

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 bug report at http://bugs.php.net/?id=27595&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27595&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27595&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27595&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27595&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27595&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27595&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27595&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27595&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27595&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27595&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27595&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27595&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27595&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27595&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27595&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27595&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27595&r=float

Reply via email to