Bug #738: $GLOBALS dislike array element and class field

From: Date: Fri, 11 Sep 1998 17:35:50 +0000
Subject: Bug #738: $GLOBALS dislike array element and class field
Groups: php.dev 
Request: Send a blank email to php-dev+get-977@lists.php.net to get a copy of this message
From: mquinson@zeppelin-cb.de Operating system: win95 ; freeBSD PHP version: 3.0.3 PHP Bug Type: Feature/Change Request Bug description: (is it a bug or an improvement?) I create class test { var $value; function test() { $this->value = 2; } } $myTest = new test(); And then, if I try to access to $GLOBALS["myTest->value"], i get an empty string. and I would like to get $myTest->value... To fix it, i have to ereg("^([a-zA-Z0-9_-]*)->([a-zA-Z0-9_-]*)",$name,$regs) all the strings I want to pass to $GLOBALS. It's not so usefull... The same is true with $GLOBALS["foo[0]"]; Thanks for your time. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#977) next »