PHP 4.0 Bug #3612: Class variable-variable member access doesn't work the way it used to

From: Date: Thu, 24 Feb 2000 21:54:49 +0000
Subject: PHP 4.0 Bug #3612: Class variable-variable member access doesn't work the way it used to
Groups: php.dev 
Request: Send a blank email to php-dev+get-15962@lists.php.net to get a copy of this message
From: gbisaga@mitre.org Operating system: Solaris PHP version: 4.0 Beta 3 PHP Bug Type: Compile Failure Bug description: Class variable-variable member access doesn't work the way it used to These lines used to work in PHP3, but I recently installed PHP4.0 Beta 3 and they no longer work. I now get the error: Parse error: parse error in ./scripts/itemTree.inc on line XXXX (Granted, the class documentation isn't very complete, but this all worked under PHP3 - and there's a user-added comment doing something similar to it.) // $which is the name of a member of the class that I'm referencing $this->{$which}[] = new node ($path[sizeof($path)-1], $url, 0); ... $kid = $this->{$which}[$where]; $this->{$which}[$where] = $kid;

« previous php.dev (#15962) next »