From e187fad2d1f4ca18c6a31af4d9c098a434284d48 Mon Sep 17 00:00:00 2001 From: foobar Date: Tue, 29 Jul 2003 11:19:47 +0000 Subject: [PATCH] MFZE2: made each() binary safe for keys --- tests/lang/each_binary_safety.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lang/each_binary_safety.phpt b/tests/lang/each_binary_safety.phpt index bb13534546..f6def82ecb 100644 --- a/tests/lang/each_binary_safety.phpt +++ b/tests/lang/each_binary_safety.phpt @@ -5,8 +5,8 @@ Binary safety of each() for both keys and values error_reporting(E_ALL); $arr = array ("foo\0bar" => "foo\0bar"); while (list($key, $val) = each($arr)) { - echo strlen($key), ': '; - echo urlencode($key), ' => ', urlencode($val), "\n"; + echo strlen($key), ': '; + echo urlencode($key), ' => ', urlencode($val), "\n"; } ?> --EXPECT-- -- 2.40.0