File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug47836.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 2 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--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)
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>