|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-28 23:41 UTC] tony2001@php.net
[2008-02-05 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 13:00:01 2025 UTC |
Description: ------------ Code below always makes my Apache (2.2) to crash. It's class with static function. Thet static function creates instance of the class and call some method on it. It also appends string to static variable and produces output. It is called in a loop 1000 times. When called 999 times - no crash. The crash occurs AFTER the code is evaluated (it means when called 2500, there are 2500 outputs and the crash report). Reproduced also on Windows Vista Business EN, Apache 2.2. NOT reproduced on any Linux I have access to. Reproduce code: --------------- class X{ public function __construct(){} public static function DoSthStatic(){$inst=new X();$inst->DoSth();return $inst;} static $st; public function DoSth(){ static $st; @$st++; echo "Done $st, "; self::$st.="Some string like this;\r\n"; } } for($i=0;$i<1000;$i++) X::DoSthStatic(); Expected result: ---------------- No crash. Actual result: -------------- Crash. The was an error in Apache HTP Server Application ... message.