summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug14580.phpt
blob: 8a80bddcb40ce98621652e0d7e6d6336e5eed465 (plain)
1
2
3
4
5
6
7
8
9
10
11
--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