[PHP-DEV] Bug #13073: empty() returns wrong value From: carsten.senf <email protected>
Date: 08/31/01

From: carsten.senf <email protected>
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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>