php-src/tests/lang/bug23624.phpt

13 lines
257 B
Plaintext
Raw Normal View History

2003-05-14 15:02:30 +00:00
--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"
bool(false)