From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]