ID:               22361
 Updated by:       [EMAIL PROTECTED]
 Reported By:      max at tvattomaten dot com
-Status:           Open
+Status:           Wont fix
 Bug Type:         Class/Object related
 Operating System: windows xp, sp1
 PHP Version:      4.3.1
 New Comment:

What happens is a stack overflow due to an unterminated loop. PHP has
no internal stack protection so it crashes. As to why windows crashes &
reboots that's already an MS bug and not a PHP problem. 
In a properly working OS, this would only result in a PHP crash.


Previous Comments:
------------------------------------------------------------------------

[2003-02-22 05:24:14] max at tvattomaten dot com

I've been thinking about reinstalling win xp for some time now but I
hate reinstalling all my software and reconfiguring. I know that there
is something fishy with my xp but this is the only time it actually
reboots. That's why I still think it may be an issue that may be
interesting to fix.

------------------------------------------------------------------------

[2003-02-21 14:54:17] php at codewhore dot org

Check your hardware for stability. PHP cannot possibly cause windows to
reboot without either a major kernel bug in windows or faulty hardware.

------------------------------------------------------------------------

[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

Reply via email to