File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug47836.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

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

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