]> granicus.if.org Git - php/commitdiff
fix the test
authorfoobar <sniper@php.net>
Thu, 24 Jul 2003 10:37:57 +0000 (10:37 +0000)
committerfoobar <sniper@php.net>
Thu, 24 Jul 2003 10:37:57 +0000 (10:37 +0000)
ext/standard/tests/array/bug14580.phpt

index ddf467a53bc0bba97870def0cbb55e0122cb6708..8a80bddcb40ce98621652e0d7e6d6336e5eed465 100644 (file)
@@ -3,13 +3,9 @@ Bug #14580 (key() not binary safe)
 --FILE--
 <?php
        $arr = array ("foo\0bar" => "foo\0bar");
-       print_r($arr);
        $key = key($arr);
-       echo strlen($key), ': ', $key, "\n";
+       echo strlen($key), ': ';
+       echo urlencode($key), "\n";
 ?>
 --EXPECT--
-Array
-(
-    [foobar] => foobar
-)
-7: foobar
+7: foo%00bar