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:
12
tests/lang/bug24783.phpt
Normal file
12
tests/lang/bug24783.phpt
Normal 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
|
||||
Reference in New Issue
Block a user