|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-14 16:37 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 23:00:01 2025 UTC |
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