1 2 3 4 5 6 7 8 9 10 11 12 13 14
--TEST-- Bug #23104 (Hash position not reset for constant arrays) --FILE-- <?php function foo($bar = array("a", "b", "c")) { var_dump(current($bar)); } foo(); ?> --EXPECT-- string(1) "a" --UEXPECT-- unicode(1) "a"