bug47836.phpt 308 B

12345678910111213141516
  1. --TEST--
  2. Bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value)
  3. --FILE--
  4. <?php
  5. $arr[PHP_INT_MAX] = 1;
  6. $arr[] = 2;
  7. var_dump($arr);
  8. ?>
  9. --EXPECTF--
  10. Warning: Cannot add element to the array as the next element is already occupied in %s on line 4
  11. array(1) {
  12. [%d]=>
  13. int(1)
  14. }