blob: bf0121ad69c2dd673498fbb03d6c3f58971de7ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--TEST--n
Bug #14580 (key() not binary safe)
--FILE--
<?php
$arr = array (b"foo\0bar" => b"foo\0bar");
$key = key($arr);
echo strlen($key), ': ';
echo urlencode($key), "\n";
?>
--EXPECT--
7: foo%00bar
|