cvs: php4 /tests/lang 031.phpt

From: Date: Tue, 01 Oct 2002 11:18:31 +0000
Subject: cvs: php4 /tests/lang 031.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14382@lists.php.net to get a copy of this message
yohgaki Tue Oct 1 07:18:31 2002 EDT Modified files: /php4/tests/lang 031.phpt Log: WS and added missing output. It seems this bug is fixed in latest version at least. Index: php4/tests/lang/031.phpt diff -u php4/tests/lang/031.phpt:1.6 php4/tests/lang/031.phpt:1.7 --- php4/tests/lang/031.phpt:1.6 Thu May 16 17:57:24 2002 +++ php4/tests/lang/031.phpt Tue Oct 1 07:18:31 2002 @@ -13,7 +13,7 @@ while(list(,$o) = each($arrayOuter)){ reset($arrayInner); while(list(,$i) = each($arrayInner)){ - print "inloop $i for $o\n"; + print "inloop $i for $o\n"; } } reset($arrayOuter); @@ -23,7 +23,7 @@ while(list(,$o) = each($arrayOuter)){ while(list(,$i) = each($arrayInner)){ - print "inloop $i for $o\n"; + print "inloop $i for $o\n"; } } reset($arrayOuter); @@ -34,7 +34,7 @@ while(list(,$o) = each($arrayOuter)){ $placeholder = $arrayInner; while(list(,$i) = each($arrayInner)){ - print "inloop $i for $o\n"; + print "inloop $i for $o\n"; } } reset($arrayOuter); @@ -45,7 +45,7 @@ while(list(,$o) = each($arrayOuter)){ $placeholder = $arrayInner; while(list(,$i) = each($placeholder)){ - print "inloop $i for $o\n"; + print "inloop $i for $o\n"; } } reset($arrayOuter); @@ -63,6 +63,8 @@ What happens without inner loop reset but copy. inloop 0 for key1 inloop 1 for key1 +inloop 0 for key2 +inloop 1 for key2 What happens with inner loop reset over copy. inloop 0 for key1 inloop 1 for key1

« previous php.cvs (#14382) next »