bug61058.phpt 272 B

12345678910111213
  1. --TEST--
  2. Bug #61058 (array_fill leaks if start index is PHP_INT_MAX)
  3. --FILE--
  4. <?php
  5. try {
  6. array_fill(PHP_INT_MAX, 2, '*');
  7. } catch (\Error $e) {
  8. echo $e->getMessage() . "\n";
  9. }
  10. ?>
  11. --EXPECT--
  12. Cannot add element to the array as the next element is already occupied