|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-12-15 16:02 UTC] ppalka4 at abacus dot pl
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 '$
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 12:00:01 2025 UTC |
code below produce parse error but it ok $wart=" hej "; if(!empty(trim($wart))) { echo "NOT OK"; }