|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-23 13:40 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jan 11 22:00:01 2026 UTC |
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