Remove variable function and method calls
| From: | Karoly Negyesi | Date: | Thu, 22 Jul 2010 22:54:29 +0000 |
| Subject: | Remove variable function and method calls | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-49109@lists.php.net to get a copy of this message | ||
Hi,
Given that call_user_func exists I would recommend to remove $foo()
from PHP Next.
Observe the "logic" in the following examples:
$foo();
new $foo();
classname::$foo;
classname::$foo();
There is a word for this and that word is madness.
The simplest is to nuke $foo(). call_user_func() is a perfect replacement.
Regards
Karoly Negyesi