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