mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
14 lines
272 B
PHP
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
|