|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-15 13:59 UTC] sniper@php.net
[2004-03-29 07:11 UTC] wf at bitplan dot com
[2004-03-29 08:04 UTC] wf at bitplan dot com
[2004-04-08 16:42 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
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.