__call interceptor and static methods
| From: | Timm Friebe | Date: | Sun, 07 Nov 2004 16:26:12 +0000 |
| Subject: | __call interceptor and static methods | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13765@lists.php.net to get a copy of this message | ||
Hi,
is there any reason why __call shouldn't be invoked for static method
calls?
Reproduce
---------
php5 -r 'class A { function __call($name, $args) { var_dump($name,
$args); } } A::foo();'
Actual result
-------------
Fatal error: Call to undefined method A::foo() in Command line code on
line 1
Expected result
---------------
string(3) "foo"
array(0) {
}
- Timm