diff options
author | foobar <sniper@php.net> | 2003-07-24 10:41:47 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-07-24 10:41:47 +0000 |
commit | 8514398dfc8d954faa03f62ad7ac357b96470900 (patch) | |
tree | 58cfc3b0548316d9a5ad656dbe414e04c1ea2e71 | |
parent | d8e5bd97c1e728d8192dd3bbdc3553ab8667d72b (diff) | |
download | php-git-8514398dfc8d954faa03f62ad7ac357b96470900.tar.gz |
Fix the test..
-rw-r--r-- | tests/lang/bug24783.phpt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lang/bug24783.phpt b/tests/lang/bug24783.phpt index 4b5fa4f229..8c8cd6ee01 100644 --- a/tests/lang/bug24783.phpt +++ b/tests/lang/bug24783.phpt @@ -5,8 +5,9 @@ Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)") error_reporting(E_ALL); $arr = array ("foo\0bar" => "foo\0bar"); foreach ($arr as $key => $val) { - echo strlen($key), ": $key => $val\n"; + echo strlen($key), ': '; + echo urlencode($key), ' => ', urlencode($val), "\n"; } ?> --EXPECT-- -7: foobar => foobar +7: foo%00bar => foo%00bar |