summaryrefslogtreecommitdiff
path: root/Zend/tests/bug23104.phpt
blob: 9c4e805cdd6951c81d5d35f8070cda33c4fca75c (plain)
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"