#21693 [Opn->Bgs]: Combination of empty and realpath produces an error

From: Date: Thu, 16 Jan 2003 19:25:15 +0000
Subject: #21693 [Opn->Bgs]: Combination of empty and realpath produces an error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30283@lists.php.net to get a copy of this message
ID: 21693 Updated by: derick@php.net Reported By: MDEnigma@gmx.de -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Windows XP PHP Version: 4.2.3 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php read the docs about @ http://php.net/empty : "Note that this is meaningless when used on anything which isn't a variable; i.e. empty (addslashes ($name)) has no meaning since it would be checking whether something which isn't a variable is a variable with a FALSE value." Previous Comments: ------------------------------------------------------------------------ [2003-01-16 13:24:06] MDEnigma@gmx.de if( empty(realpath(__FILE__)) ) echo "test"; will produce a parse error like: Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in d:\wwwroot\test3.php on line x ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21693&edit=1

« previous php.bugs (#30283) next »