checking the return value of member function with empty

From: Date: Sun, 10 Aug 2003 01:00:57 +0000
Subject: checking the return value of member function with empty
Groups: php.general 
Request: Send a blank email to php-general+get-159006@lists.php.net to get a copy of this message
I am having this rather annoying syntax problem. I have this.. if (!empty($this->GetParam('someparameter')) { // OK do something since the parameter is set. } However that fails with this parse error parse error, expecting `')'' Why??? If I do this $var = $this->GetParam('someparameter')); if (!empty($var)) { // same thing as before } it works fine with no error.. This *SHOULD* be syntactically correct, but php doesn't think so. Should I file a bug on this one? Oh yeah, normal information about running environment. PHP version 4.3.2

« previous php.general (#159006) next »