TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
330 B
19 lines
330 B
--TEST--
|
|
GH-19926 (internal pointer behavior after array_splice)
|
|
--FILE--
|
|
<?php
|
|
$a = [1, 2, 3];
|
|
unset($a[0]);
|
|
next($a);
|
|
|
|
echo "Before array_splice: ";
|
|
var_dump(current($a));
|
|
|
|
array_splice($a, 0, 0, [999]);
|
|
|
|
echo "After array_splice: ";
|
|
var_dump(current($a));
|
|
?>
|
|
--EXPECT--
|
|
Before array_splice: int(3)
|
|
After array_splice: int(999)
|
|
|