Re: PHP 4.0 Bug #5478 Updated: access violation using variable aliases in classes

From: Date: Wed, 06 Sep 2000 08:34:29 +0000
Subject: Re: PHP 4.0 Bug #5478 Updated: access violation using variable aliases in classes
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-32322@lists.php.net to get a copy of this message
am 05.09.2000 4:31 Uhr schrieb Bug Database unter php-dev@lists.php.net: > 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 > By the time, that I reported the bug, it affected both, Linux and Windows. Unfortunately, I didn't manage to check this with the latest CVS yet. André

« previous php.dev (#32322) next »