summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug14580.phpt
blob: 8f4c7d5bd39738e36bc199a02b9e6905ef1a151f (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