Re: Deprecation of func_get_args(), call_user_func_array() and related API
| From: | Nicolas Grekas | Date: | Mon, 01 Dec 2014 07:22:11 +0000 |
| Subject: | Re: Deprecation of func_get_args(), call_user_func_array() and related API | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79331@lists.php.net to get a copy of this message | ||
For the record, from https://bugs.php.net/bug.php?id=68475 :
call_user_func($a) is **almost** equivalent to $a():
A "foo::bar" string is OK for call_user_func(),
but KO for the pure syntax way.
See http://3v4l.org/rbQ4P
To me, this looks like a whole in the implementation that should be fixed.
But unless it happens, there will always be a valid use case for
call_user_func, since it's the only way to keep working with existing code.
Nicolas