PHP 4.0 Bug #5478 Updated: access violation using variable aliases in classes
| From: | Bug Database | Date: | Tue, 05 Sep 2000 02:31:40 +0000 |
| Subject: | PHP 4.0 Bug #5478 Updated: access violation using variable aliases in classes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-32057@lists.php.net to get a copy of this message | ||
ID: 5478
Updated by: sniper
Reported By: avarney@mediatec-online.de
Status: Feedback
Bug Type: Reproduceable crash
Assigned To:
Comments:
So is this only a windoze problem ? I can not reproduce
this within Linux using latest CVS of php4.
--Jani
Previous Comments:
[2000-07-27 21:43:28] zak@php.net
Verified. Despite being incorrect usage, it not should cause an access violation.
---------------------------------------------------------------------------
[2000-07-09 06:06:35] avarney@mediatec-online.de
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";
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=5478