Bug #14743: infite method calls

From: Date: Fri, 28 Dec 2001 18:19:53 +0000
Subject: Bug #14743: infite method calls
Groups: php.dev 
Request: Send a blank email to php-dev+get-75210@lists.php.net to get a copy of this message
From: cox@idecnet.com Operating system: Linux PHP version: 4.1.0 PHP Bug Type: Reproducible crash Bug description: infite method calls This script (stupid) makes php crash. I know is a fail of the developer but still a crash. <?php class foo { var $a = "orig value"; function register() { $bar =& $this; $bar->updateA('new value'); } function updateA($val) { $this->register(); $this->a = $val; } } $foo = new Foo; $foo->updateA("new value"); ?> -- Edit bug report at: http://bugs.php.net/?id=14743&edit=1

« previous php.dev (#75210) next »