1--TEST-- 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