summaryrefslogtreecommitdiff
path: root/Zend/tests/bug74810.phpt
blob: 6c24e4bce82efe97227ee2a79498a2c1d6be0f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Bug #74810: Something odd about ordering of func_get_args() result in 7.2
--FILE--
<?php

function test_slice1() {
    var_dump(array_slice(func_get_args(), 1));
}
function test_slice5() {
    var_dump(array_slice(func_get_args(), 5));
}

test_slice1(1, 2, 3);
test_slice5(1, 2, 3);

?>
--EXPECT--
array(2) {
  [0]=>
  int(2)
  [1]=>
  int(3)
}
array(0) {
}