Date: 08/31/01
- Next message: cynic <email protected>: "[PHP-DEV] Bug #13084: can't pipe into php script"
- Previous message: sniper <email protected>: "[PHP-DEV] Bug #13077 Updated: $HTTP_SESSION_VARS not set with first call to session_start()"
- In reply to: carsten.senf <email protected>: "[PHP-DEV] Bug #13073: empty() returns wrong value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 13073
Updated by: jeroen
Reported By: carsten.senf <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] cynic <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] carsten.senf <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: 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>
- Next message: cynic <email protected>: "[PHP-DEV] Bug #13084: can't pipe into php script"
- Previous message: sniper <email protected>: "[PHP-DEV] Bug #13077 Updated: $HTTP_SESSION_VARS not set with first call to session_start()"
- In reply to: carsten.senf <email protected>: "[PHP-DEV] Bug #13073: empty() returns wrong value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

