Re: bug?: connect and php functions

From: Date: Fri, 13 Jan 2006 13:49:36 +0000
Subject: Re: bug?: connect and php functions
References: 1 2 3  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2194@lists.php.net to get a copy of this message
Christian Weiske wrote:
I wouldn't call it a bug - I'd call it expected behaviour.
And that is because ..? I don't understand why it's expected.
Because print isn't a function. print is a language construct just like echo and require_once. That is why print/echo can be used without parenthesis. http://us2.php.net/manual/en/function.print.php Also, I don't think this is really really related to PHP-GTK. I think it has to do with PHP's callback mechanism. I can't test this right now but try it with array_walk. My guess is that you will see the same thing. Of course it could fail on true functions also. Try connecting to something like substr(). You won't see any real results but if you don't get the warning then you know it worked. Scott

« previous php.gtk.dev (#2194) next »