mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
13 lines
188 B
Plaintext
13 lines
188 B
Plaintext
|
--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"
|