mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
ed37ca7369
And also did some general cleanup in ZEND_FUNC_GET_ARGS.
26 lines
367 B
PHP
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) {
|
|
}
|