xref: /PHP-5.5/ext/standard/tests/array/bug14580.phpt (revision a541bb80)
1--TEST--n
2Bug #14580 (key() not binary safe)
3--FILE--
4<?php
5	$arr = array (b"foo\0bar" => b"foo\0bar");
6	$key = key($arr);
7	echo strlen($key), ': ';
8	echo urlencode($key), "\n";
9?>
10--EXPECT--
117: foo%00bar
12