Hello Andrei,

Tuesday, January 6, 2004, 1:06:05 AM, you wrote:

> 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.

First call_user_method() is deprecated. And second it's signature doesn't
allow static calls like that. It taks an object as second parameter.
The first parameter the method name only take the method name and not its
class name.

-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to