zeev Thu Jul 24 09:08:35 2003 EDT
Added files:
/php-src/tests/lang each_binary_safety.phpt
Log:
Add test for binary safety of each()
Index: php-src/tests/lang/each_binary_safety.phpt
+++ php-src/tests/lang/each_binary_safety.phpt
--TEST--
Binary safety of each() for both keys and values
--FILE--
<?php
error_reporting(E_ALL);
$arr = array ("foo\0bar" => "foo\0bar");
while (list($key, $val) = each($arr)) {
echo strlen($key), ': ';
echo urlencode($key), ' => ', urlencode($val), "\n";
}
?>
--EXPECT--
7: foo%00bar => foo%00bar
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php