Bug #68427 [NEW]: Associative arrays are limited to 32768 elements
| From: | rknights at tripadvisor dot com | Date: | Sun, 16 Nov 2014 02:41:43 +0000 |
| Subject: | Bug #68427 [NEW]: Associative arrays are limited to 32768 elements | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188616@lists.php.net to get a copy of this message | ||
From: rknights at tripadvisor dot com
Operating system: Linux
PHP version: 5.6.3
Package: Arrays related
Bug Type: Bug
Bug description:Associative arrays are limited to 32768 elements
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 bug report at https://bugs.php.net/bug.php?id=68427&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68427&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68427&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68427&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68427&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68427&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68427&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68427&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68427&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68427&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68427&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68427&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68427&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68427&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68427&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68427&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68427&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68427&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68427&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68427&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68427&r=mysqlcfg