diff options
Diffstat (limited to 'ext/standard/tests/array/bug14580.phpt')
-rw-r--r-- | ext/standard/tests/array/bug14580.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/standard/tests/array/bug14580.phpt b/ext/standard/tests/array/bug14580.phpt new file mode 100644 index 0000000..bf0121a --- /dev/null +++ b/ext/standard/tests/array/bug14580.phpt @@ -0,0 +1,11 @@ +--TEST--n +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 |