|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-05-30 03:40 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jan 27 21:00:01 2026 UTC |
A string containing a number is being treated the same as a number. Reproduce with: $a = array("0", "a", "b"); for (reset($a); $v = current($a); next($a)) { echo "$v\n"; } I would expect this to print three lines with three strings: 0 a b instead it prints nothing at all. If the first string is changed from "0" to "z", it prints three lines as expected. Looks like the string "0" is being treated the same as the number 0. do-conf contains: ./configure --with-gd=no --with-sybase=/tools1/pkgs/sybase --with-config-file-path=/web/cgi-bin/RC_internal/phpdir/lib --enable-debug=no --enable-safe-mode=yes --with-exec-dir=/web/cgi-bin/RC_internal/phpdir/scripts --bindir=/web/cgi-bin/RC_internal/phpdir/bin