1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00
Files
archived-php-src/ext/standard/tests/array/bug14580.phpt
2017-05-10 16:50:19 -07:00

12 lines
204 B
PHP

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