Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c /tests bug26802.phpt
| From: | Andrei Zmievski | Date: | Tue, 06 Jan 2004 00:06:05 +0000 |
| Subject: | Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c /tests bug26802.phpt | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6809@lists.php.net to get a copy of this message | ||
On Tue, 06 Jan 2004, Marcus Boerger wrote:
> > Is 'class::method' syntax supported by call_user_function() as well
> > then?
>
> No but for that you have call_user_method() or the preferred way of using
> the array notation. When i made the patch that allowed static calls from
> within sqlite i discussed this with Andi and we thought the array notation
> would be enough for call_user_fun(). Howerver i was unaware that the problem
> exists for our 'function pointers' as well.
call_user_method() is what I meant, actually. I'd love for both
"class::method" and "$obj->method" work in call_user_method() because it
means that PHP-GTK users' lives would be made much easier.
- Andrei