summaryrefslogtreecommitdiff
path: root/tests/lang/bug23624.phpt
blob: 4ddb82e8c688571678d88ad84a7e969954b2f263 (plain)
1
2
3
4
5
6
7
8
9
10
11
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"
bool(false)