php-src/ext/standard/tests/array/bug14580.phpt
Jani Taskinen a541bb8078 - Fix tests
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +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