Re: call_user_func, static calls, and $this
| From: | Brad Bulger | Date: | Wed, 13 Aug 2003 07:34:20 +0000 |
| Subject: | Re: call_user_func, static calls, and $this | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3875@lists.php.net to get a copy of this message | ||
semi-related: __call is somewhat reversed. it will catch call_user_func(array('self','fake')), but not self::fake()
(same for parent vs parent:: or randomclass vs randomclass::)
the visibility of $this is not changed, so you end up with
no $this inside __call. it can be a surprise.