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.
15 lines
347 B
15 lines
347 B
--TEST--
|
|
Bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
|
|
--SKIPIF--
|
|
<?php die("skip AOT array_fill edge case differs from PHP"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
array_fill(PHP_INT_MAX, 2, '*');
|
|
} catch (\Error $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Cannot add element to the array as the next element is already occupied
|
|
|