Re: issues with classnames, staic class members and constants as variables
| From: | Etienne Kneuss | Date: | Fri, 25 Apr 2008 16:44:46 +0000 |
| Subject: | Re: issues with classnames, staic class members and constants as variables | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37221@lists.php.net to get a copy of this message | ||
Hello,
Are you using a custom and outdated build of 5.2.4 ?
$classname::$member was introduced in php5.2.4 but removed
before the actual release, and is now only present as of PHP5.3.
Regards
On Fri, Apr 25, 2008 at 5:53 PM, Nathan Nobbe <quickshiftin@gmail.com>
wrote:
> hello all,
>
> this is my maiden voyage on the internals list. recently i have discovered
> functionality that existed in php-5.2.4 that missing in php-5.2.5 and also
> php-5.2.6_rc3. i have posted to the php-general list and to the php-qa
> list
> and not received any sort of feedback about this discovery. primarily, in
> php-5.2.4 variables could be used to hold the name of a class and used to
> access static members (both attributes and methods) as well as constants.
> there was other related support as well. please see the archived post on
> the qa list for details,
> http://marc.info/?l=php-qa&m=120901795414161&w=2
> there you will see i have prepared phpt tests and run them on php-5.2.4 and
> php-5.2.6_rc3 installs.
>
> im curious if support was intentionally removed or if it was an oversight?
> if so, is this something that could be forward ported from php-5.2.4? i
> would be willing to work on a patch if that were the case.
>
> thanks,
>
> -nathan
>
--
Etienne Kneuss
http://www.colder.ch
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal