diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-10-01 11:18:31 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-10-01 11:18:31 +0000 |
commit | 7cacf9713dba2e7c56f664c95499d4873d22fffc (patch) | |
tree | 9161ef6a9e942a4e6aea1b76ced865f9e241b0ca | |
parent | 2c4b6fff6d1317edbc0834d3facd113f9c41b9cf (diff) | |
download | php-git-7cacf9713dba2e7c56f664c95499d4873d22fffc.tar.gz |
WS and added missing output.
It seems this bug is fixed in latest version at least.
-rw-r--r-- | tests/lang/031.phpt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/lang/031.phpt b/tests/lang/031.phpt index b0961b1e38..af99f3d219 100644 --- a/tests/lang/031.phpt +++ b/tests/lang/031.phpt @@ -13,7 +13,7 @@ print "Correct - with inner loop reset.\n"; 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 @@ print "What happens without inner loop reset.\n"; 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 @@ print "What happens without inner loop reset but copy.\n"; 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 @@ print "What happens with inner loop reset over copy.\n"; 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 @@ inloop 1 for key1 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 |