sniper Thu Jul 24 06:13:17 2003 EDT
Added files:
/php-src/ext/standard/tests/array bug14580.phpt
Log:
test for bug #14580 (key() not binary safe)
Index: php-src/ext/standard/tests/array/bug14580.phpt
+++ php-src/ext/standard/tests/array/bug14580.phpt
--TEST--n
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";
?>
--EXPECT--
Array
(
[foobar] => foobar
)
7: foobar
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php