Fix inconsistencies in OO calls
| From: | Etienne Kneuss | Date: | Mon, 30 Jul 2007 20:27:31 +0000 |
| Subject: | Fix inconsistencies in OO calls | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-31331@lists.php.net to get a copy of this message | ||
Hello,
Currently, those are allowed:
new $classname;
classname::$methodname();
but those aren't:
$classname::foo();
$classname::CONST;
$classname::$member;
Here is a patch for head that fixes those inconsistencies by extending
the language parser to support such syntax:
http://patches.colder.ch/Zend/dynamic_static_calls.patch?markup
(patch
also attached)
Regards
--
Etienne Kneuss
http://www.colder.ch
Men never do evil so completely and cheerfully as
when they do it from a religious conviction.
-- Pascal