php-src/ext/standard/tests/array/bug14580.phpt
Antony Dovgal 8f98226510 fix tests
2006-12-06 13:11:02 +00:00

12 lines
205 B
PHP

--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