1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.

This commit is contained in:
SVN Migration
2003-07-24 10:25:16 +00:00
parent 385db5abbd
commit 8da6929e93

12
tests/lang/bug24783.phpt Normal file
View File

@@ -0,0 +1,12 @@
--TEST--
Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)")
--FILE--
<?php
error_reporting(E_ALL);
$arr = array ("foo\0bar" => "foo\0bar");
foreach ($arr as $key => $val) {
echo strlen($key), ": $key => $val\n";
}
?>
--EXPECT--
7: foobar => foobar