ID: 27647
Updated by: [EMAIL PROTECTED]
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