ID: 13073
Updated by: jeroen
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Variables related
Operating System: Linux, Windows2000
PHP Version: 4.0.6
New Comment:
"empty($iid) returns FALSE, but $iid is not empty."
$iid is NOT empty, so it indeed returns false... :-)
Previous Comments:
------------------------------------------------------------------------
[2001-08-31 06:31:41] [EMAIL PROTECTED]
I suggest you turn your attention to the PHP manual.
(Though I admit that the fact that empty() returns true for 0 and "0" could be stresse
more in the manual page.)
------------------------------------------------------------------------
[2001-08-31 04:19:28] [EMAIL PROTECTED]
Hi,
the value of iid comes from the URL-request-string. I.e. &iid=0
If I test of the emptyness of $iid, empty($iid) returns FALSE, but $iid is not empty.
if (empty($iid)) {
$iid = '5.1';
}
The test "if ($iid == '') returns the right value.
regards,
Carsten
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13073&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]