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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php