mirror of
https://github.com/php/php-src.git
synced 2024-12-22 08:20:23 +08:00
26 lines
367 B
Plaintext
26 lines
367 B
Plaintext
|
--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) {
|
||
|
}
|