|
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-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 12 19:00:01 2025 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