#22361 [NEW]: Endless loop causes windows to reboot

From: Date: Fri, 21 Feb 2003 19:50:22 +0000
Subject: #22361 [NEW]: Endless loop causes windows to reboot
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33865@lists.php.net to get a copy of this message
From: max at tvattomaten dot com Operating system: windows xp, sp1 PHP version: 4.3.1 PHP Bug Type: Class/Object related Bug description: Endless loop causes windows to reboot Hi! I've noticed that this buggy code causes a windows xp crash and reboot: ******* class A { var Object; function A(){ $this->Object = new B(); } } class B { var Object; function B(){ $this->Object = new A(); } } **** and then running: $myObject = new B(); *********************** I figure that first of all this should not result in that windows reboots. Second I wouldn't mind if with the notices turned on it should report a notice for this error (I can't be the only one that's done this). At least there should be such a check for the constructor since it seems that I can't learn from my previous mistakes :-D Thanks for great software! //Max Gordon PS. I'm running latest version of apache 2 DS -- Edit bug report at http://bugs.php.net/?id=22361&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22361&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22361&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22361&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22361&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22361&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22361&r=support Expected behavior: http://bugs.php.net/fix.php?id=22361&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22361&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22361&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22361&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22361&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22361&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22361&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22361&r=gnused

« previous php.bugs (#33865) next »