From: [EMAIL PROTECTED] Operating system: FreeBSD PHP version: 4.2.1 PHP Bug Type: Strings related Bug description: empty() + chop() Function = Parse error
Hello, the following Code makes a parse error: <? $array[0][0] = ' '; if ( empty( chop($array[0][0]) ) ) { echo 'none'; } ?> Error Output: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /usr/home/enrico/public_html/oscommerce/import_hersteller.php on line 19 I changed my Code to... if ( chop($array[0][0]) == '' ) and thats ok. greets enrico -- Edit bug report at http://bugs.php.net/?id=19492&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19492&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19492&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19492&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19492&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19492&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19492&r=support Expected behavior: http://bugs.php.net/fix.php?id=19492&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19492&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19492&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19492&r=globals