1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/bug61058.phpt
George Peter Banyard d5e9ef8f0f Promote warnings to error in array_flip()
Closes GH-4576.
2019-10-02 12:31:02 +02:00

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