This commit is contained in:
foobar 2003-05-14 15:02:30 +00:00
parent ecf78a23cd
commit 412f54edab

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

@ -0,0 +1,12 @@
--TEST--
Bug #23624 (foreach leaves current array key as null)
--FILE--
<?php
$arr = array ('one', 'two', 'three');
var_dump(current($arr));
foreach($arr as $key => $value);
var_dump(current($arr));
?>
--EXPECT--
string(3) "one"
string(5) "three"