php-src/Zend/tests/bug74810.phpt
Nikita Popov ed37ca7369 Fixed bug #74810
And also did some general cleanup in ZEND_FUNC_GET_ARGS.
2017-06-25 16:00:24 +02:00

26 lines
367 B
PHP

--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) {
}