Bug #68427 [Opn->Dup]: Associative arrays are limited to 32768 elements

From: Date: Sun, 16 Nov 2014 04:23:50 +0000
Subject: Bug #68427 [Opn->Dup]: Associative arrays are limited to 32768 elements
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188617@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68427&edit=1

 ID:                 68427
 Updated by:         requinix@php.net
 Reported by:        rknights at tripadvisor dot com
 Summary:            Associative arrays are limited to 32768 elements
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            Arrays related
 Operating System:   Linux
 PHP Version:        5.6.3
 Block user comment: N
 Private report:     N

 New Comment:

Same bug.

(mentioning bug #68057 for the automatic linking)


Previous Comments:
------------------------------------------------------------------------
[2014-11-16 02:41:43] rknights at tripadvisor dot com

Description:
------------
An associative array that exceeds 32768 elements in length will be truncated.  Only the elements
after 32768 will appear (i.e., the index rolls over).

Perhaps related to https://bugs.php.net/bug.php?id=68057

Evident in PHP 5.6.3 and 5.6.2; not present in PHP 5.3.x.



Test script:
---------------
http://filebin.ca/1hOFmcE7JwlX/big_array.php



Expected result:
----------------
Prints the length of the static array.  The expected length is 37260.  Prints 4492 (and throws an
exception) on versions of PHP where the bug is present.




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68427&edit=1


Thread (2 messages)

« previous php.bugs (#188617) next »