2003-08-04 17:10:52 +00:00
|
|
|
--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"
|
2005-08-15 14:37:55 +00:00
|
|
|
--UEXPECT--
|
|
|
|
unicode(1) "a"
|