PHP 4.0 Bug #8702: Nesting trim inside an empty wont parse
| From: | bob at bravenet dot com | Date: | Sun, 14 Jan 2001 21:32:30 +0000 |
| Subject: | PHP 4.0 Bug #8702: Nesting trim inside an empty wont parse | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44074@lists.php.net to get a copy of this message | ||
From: bob@bravenet.com
Operating system: Linux rh6.2
PHP version: 4.0.4
PHP Bug Type: Scripting Engine problem
Bug description: Nesting trim inside an empty wont parse
if ( empty(trim($str)) ) {
echo "BUG";
} else {
echo "WORKS";
}
Dont really need all the echo's since it never gets past a syntax check for the empty(trim())
part. I have to assume its a bug since logically, it shouldnt give a parser error.
Parse error: parse error, expecting
T_VARIABLE' or '$'' in
/website/main/test.php on line 2
--
Edit Bug report at: http://bugs.php.net/?id=8702&edit=1