xref: /PHP-5.6/tests/lang/bug23624.phpt (revision 7d6d146a)
1--TEST--
2Bug #23624 (foreach leaves current array key as null)
3--FILE--
4<?php
5    $arr = array ('one', 'two', 'three');
6    var_dump(current($arr));
7    foreach($arr as $key => $value);
8    var_dump(current($arr));
9?>
10--EXPECT--
11string(3) "one"
12bool(false)
13