#27647 [Opn->Csd]: empty() does not work correctly

From: Date: Tue, 23 Mar 2004 18:40:49 +0000
Subject: #27647 [Opn->Csd]: empty() does not work correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56685@lists.php.net to get a copy of this message
 ID:               27647
 Updated by:       iliaa@php.net
 Reported By:      simen at amaxit dot net
-Status:           Open
+Status:           Closed
 Bug Type:         Unknown/Other Function
 Operating System: Solaris 5.8 Sparc
 PHP Version:      4.3.5RC4
 New Comment:

Works just fine with latest CVS. 


Previous Comments:
------------------------------------------------------------------------

[2004-03-18 22:15:49] simen at amaxit dot net

Description:
------------
empty() does not work correctly on Solaris 5.8 Sparc, but same code
works well on Linux or FreeBSD.

Reproduce code:
---------------
$test[0] = 'field1';
$test[1] = 'field2';

for($i=0;!empty($test[$i]);$i++) {
    echo '<br>'.$test[$i];
}

Expected result:
----------------
field1
field2

Actual result:
--------------
nothing



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27647&edit=1


Thread (2 messages)

« previous php.bugs (#56685) next »