xref: /PHP-8.4/Zend/tests/bug74810.phpt (revision ed37ca73)
1--TEST--
2Bug #74810: Something odd about ordering of func_get_args() result in 7.2
3--FILE--
4<?php
5
6function test_slice1() {
7    var_dump(array_slice(func_get_args(), 1));
8}
9function test_slice5() {
10    var_dump(array_slice(func_get_args(), 5));
11}
12
13test_slice1(1, 2, 3);
14test_slice5(1, 2, 3);
15
16?>
17--EXPECT--
18array(2) {
19  [0]=>
20  int(2)
21  [1]=>
22  int(3)
23}
24array(0) {
25}
26