mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
dca18b68d1
Also simplified related array_push() test
17 lines
308 B
PHP
17 lines
308 B
PHP
--TEST--
|
|
Bug #47836 (array operator [] inconsistency when the array has PHP_INT_MAX index value)
|
|
--FILE--
|
|
<?php
|
|
|
|
$arr[PHP_INT_MAX] = 1;
|
|
$arr[] = 2;
|
|
|
|
var_dump($arr);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot add element to the array as the next element is already occupied in %s on line 4
|
|
array(1) {
|
|
[%d]=>
|
|
int(1)
|
|
}
|