mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
12 lines
203 B
PHP
12 lines
203 B
PHP
--TEST--n
|
|
Bug #14580 (key() not binary safe)
|
|
--FILE--
|
|
<?php
|
|
$arr = array ("foo\0bar" => "foo\0bar");
|
|
$key = key($arr);
|
|
echo strlen($key), ': ';
|
|
echo urlencode($key), "\n";
|
|
?>
|
|
--EXPECT--
|
|
7: foo%00bar
|