From: foobar Date: Tue, 29 Jul 2003 11:19:47 +0000 (+0000) Subject: MFZE2: made each() binary safe for keys X-Git-Tag: php-4.3.3RC2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e187fad2d1f4ca18c6a31af4d9c098a434284d48;p=php MFZE2: made each() binary safe for keys --- 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--