Bug #13073: empty() returns wrong value
| From: | carsten dot senf at novasib dot de | Date: | Fri, 31 Aug 2001 08:19:28 +0000 |
| Subject: | Bug #13073: empty() returns wrong value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-64772@lists.php.net to get a copy of this message | ||
From: carsten.senf@novasib.de
Operating system: Linux, Windows2000
PHP version: 4.0.6
PHP Bug Type: Variables related
Bug description: empty() returns wrong value
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 bug report at: http://bugs.php.net/?id=13073&edit=1