ID: 8702
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To: 
Comments:

As per the documentation empty() has no meaning for anything other than a variable.  
You can't pass it an expression.

Previous Comments:
---------------------------------------------------------------------------

[2001-01-14 16:32:30] [EMAIL PROTECTED]
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


---------------------------------------------------------------------------


Full Bug description available at: http://bugs.php.net/?id=8702


-- 
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]

Reply via email to