mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
14 lines
318 B
PHP
14 lines
318 B
PHP
--TEST--
|
|
Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)")
|
|
--FILE--
|
|
<?php
|
|
error_reporting(E_ALL);
|
|
$arr = array ("foo\0bar" => "foo\0bar");
|
|
foreach ($arr as $key => $val) {
|
|
echo strlen($key), ': ';
|
|
echo urlencode($key), ' => ', urlencode($val), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
7: foo%00bar => foo%00bar
|