1--TEST--
2Binary safety of each() for both keys and values
3--FILE--
4<?php
5error_reporting(E_ALL);
6$arr = array ("foo\0bar" => "foo\0bar");
7while (list($key, $val) = each($arr)) {
8	echo strlen($key), ': ';
9	echo urlencode($key), ' => ', urlencode($val), "\n";
10}
11?>
12--EXPECT--
137: foo%00bar => foo%00bar
14