php-8.0.30-src/ext/standard/tests/array/bug61058.phpt

14 lines
272 B
PHP

--TEST--
Bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
--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