xref: /PHP-7.0/Zend/tests/bug23104.phpt (revision 1007b0a8)
1--TEST--
2Bug #23104 (Hash position not reset for constant arrays)
3--FILE--
4<?php
5function foo($bar = array("a", "b", "c"))
6{
7	var_dump(current($bar));
8}
9foo();
10?>
11--EXPECT--
12string(1) "a"
13