Re: PHP 4.0 Bug #3612: Class variable-variable member access doesn't work the way it used to
| From: | Zeev Suraski | Date: | Thu, 24 Feb 2000 23:24:51 +0000 |
| Subject: | Re: PHP 4.0 Bug #3612: Class variable-variable member access doesn't work the way it used to | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-15966@lists.php.net to get a copy of this message | ||
Can you please upgrade to PHP 4.0 Beta 4 and see if the problem persists?
Zeev
On 24 Feb 2000 gbisaga@mitre.org wrote:
> 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;
>
>
>
>
--
Zeev Suraski <zeev@zend.com>
http://www.zend.com/