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