Re: bug?: connect and php functions

From: Date: Wed, 18 Jan 2006 20:04:18 +0000
Subject: Re: bug?: connect and php functions
References: 1 2 3 4  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2216@lists.php.net to get a copy of this message
Scott Mattocks wrote:
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.
I am sure that everyone has moved on from this topic by now but I just came across this page in the PHP manual: http://us2.php.net/manual/en/language.pseudo-types.php#language.types.callback It gives a list of "functions" that cannot be used as callbacks. Everything in the list is a language construct and not a function. Scott

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