From: ppalka4 at abacus dot pl Operating system: LINUX PHP version: 4.4.4 PHP Bug Type: Compile Failure Bug description: compile error empty(trim($var))
Description: ------------ System Linux test2.abacus.pl 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 Build Date Nov 28 2006 11:45:15 Configure Command './configure' '--with-jpeg-dir=/usr/lib/' '--enable-mbstring' '--with-mysql' '--enable-track-vars' '--enable-ftp' '--enable-sysshm' '--enable-sysvsem' '--with-gd' '--with-zlib' '--with-gettext' '--prefix=/usr/PHP' '--with-apxs=/usr/Apache/bin/apxs' '--prefix=/usr/PHP' '--enable-safe-mode' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /usr/PHP/lib/php.ini PHP API 20020918 PHP Extension 20020429 Zend Extension 20050606 Debug Build no Zend Memory Manager enabled Thread Safety disabled Registered PHP Streams php, http, ftp, compress.zlib Reproduce code: --------------- $wart=" hej "; $wart=trim($wart); if(!empty($wart)) { echo "WORKS"; } /* $wart=" hej "; if(!empty(trim($wart))) { echo "PARSE ERROR"; } */ Expected result: ---------------- problem with compile program $wart=" hej "; if(!empty(trim($wart))) { echo "PARSE ERROR"; } Actual result: -------------- Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$ -- Edit bug report at http://bugs.php.net/?id=39844&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39844&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39844&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39844&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39844&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39844&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39844&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39844&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39844&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39844&r=support Expected behavior: http://bugs.php.net/fix.php?id=39844&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39844&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39844&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39844&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39844&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39844&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39844&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39844&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39844&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39844&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39844&r=mysqlcfg