xref: /PHP-8.0/Zend/tests/bug23104.phpt (revision f8d79582)
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