mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
MFB
This commit is contained in:
parent
ecf78a23cd
commit
412f54edab
12
tests/lang/bug23624.phpt
Normal file
12
tests/lang/bug23624.phpt
Normal 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"
|
Loading…
Reference in New Issue
Block a user