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

Reply via email to