PHP 4.0 Bug #5478: access violation using variable aliases in classes
| From: | avarney at mediatec-online dot de | Date: | Sun, 09 Jul 2000 10:06:35 +0000 |
| Subject: | PHP 4.0 Bug #5478: access violation using variable aliases in classes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-23857@lists.php.net to get a copy of this message | ||
From: avarney@mediatec-online.de
Operating system: WinDoze NT4.0
PHP version: 4.0 Latest CVS (09/07/2000)
PHP Bug Type: Reproduceable crash
Bug description: access violation using variable aliases in classes
Hi,
here is a little piece of code that will crash php. Of course I know that this is because
I remove the object itself, but I guess, PHP is supposed to keep running anyway!?
I used PHP4.0.1PL2 on windows NT4.0 to do this. Would you like this sort of stuff to be reported as
an error? Will you be able to fix it?
Regards,
André
<?
// Crude piece of code to show a way to make PHP run into an
// access violation. (C) 20000708 by Andre Varney (avarney@mediatec-online.de)
Class MONSTER {
function MONSTER() {
$GLOBALS["xalias"] = &$this;
}
function kill() {
unset($GLOBALS["xalias"]);
}
}
$x=new MONSTER;
$xalias->kill();
print "that's it";
?>