cvs: php-src /ext/standard/tests/array bug14580.phpt
| From: | Jani Taskinen | Date: | Thu, 24 Jul 2003 10:37:57 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/array bug14580.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-22768@lists.php.net to get a copy of this message | ||
sniper Thu Jul 24 06:37:57 2003 EDT
Modified files:
/php-src/ext/standard/tests/array bug14580.phpt
Log:
fix the test
Index: php-src/ext/standard/tests/array/bug14580.phpt
diff -u php-src/ext/standard/tests/array/bug14580.phpt:1.1
php-src/ext/standard/tests/array/bug14580.phpt:1.2
--- php-src/ext/standard/tests/array/bug14580.phpt:1.1 Thu Jul 24 06:13:17 2003
+++ php-src/ext/standard/tests/array/bug14580.phpt Thu Jul 24 06:37:57 2003
@@ -3,13 +3,9 @@
--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