php-src/Zend/tests/bug23104.phpt
2020-02-03 22:52:20 +01:00

13 lines
191 B
PHP

--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"