xref: /PHP-8.2/ext/standard/tests/array/bug61058.phpt (revision d5e9ef8f)
1--TEST--
2Bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
3--FILE--
4<?php
5
6try {
7    array_fill(PHP_INT_MAX, 2, '*');
8} catch (\Error $e) {
9    echo $e->getMessage() . "\n";
10}
11?>
12--EXPECT--
13Cannot add element to the array as the next element is already occupied
14