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

From: Date: Fri, 21 Feb 2003 20:54:18 +0000
Subject: #22361 [Com]: Endless loop causes windows to reboot
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33869@lists.php.net to get a copy of this message
ID: 22361 Comment by: php at codewhore dot org Reported By: max at tvattomaten dot com Status: Open Bug Type: Class/Object related Operating System: windows xp, sp1 PHP Version: 4.3.1 New Comment: Check your hardware for stability. PHP cannot possibly cause windows to reboot without either a major kernel bug in windows or faulty hardware. Previous Comments: ------------------------------------------------------------------------ [2003-02-21 13:50:22] max at tvattomaten dot com 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 this bug report at http://bugs.php.net/?id=22361&edit=1

« previous php.bugs (#33869) next »