summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-07-24 10:37:57 +0000
committerfoobar <sniper@php.net>2003-07-24 10:37:57 +0000
commitd8e5bd97c1e728d8192dd3bbdc3553ab8667d72b (patch)
treeda01dc7f3cdeb19dddc7bd149e16d522e314afd6
parentdcfe901015c46688599b34e0e0572ec88eb18d93 (diff)
downloadphp-git-d8e5bd97c1e728d8192dd3bbdc3553ab8667d72b.tar.gz
fix the test
-rw-r--r--ext/standard/tests/array/bug14580.phpt10
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/standard/tests/array/bug14580.phpt b/ext/standard/tests/array/bug14580.phpt
index ddf467a53b..8a80bddcb4 100644
--- a/ext/standard/tests/array/bug14580.phpt
+++ b/ext/standard/tests/array/bug14580.phpt
@@ -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