|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69247 Arrays in classes can't have more than 32767 items
Submitted: 2015-03-17 12:06 UTC Modified: 2015-03-17 15:30 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: david at grudl dot com Assigned:
Status: Duplicate Package: Compile Failure
PHP Version: 5.6.6 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: david at grudl dot com
New email:
PHP Version: OS:


 [2015-03-17 12:06 UTC] david at grudl dot com
When an array defined in class (static or non-static) contains more than 32767 items with string keys, its content is silently discarded.

This bug affects all 5.6.x releases.

Test script:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-17 13:08 UTC]
struct _zend_ast {
 unsigned short kind;
 unsigned short children;  <---- 

I don't think fix this is okey due to ABI BC break....

 [2015-03-17 13:09 UTC]
-Status: Open +Status: Analyzed
 [2015-03-17 13:55 UTC]
I'd like mark this as won't fix , and master(php7) works fine... objections?
 [2015-03-17 15:30 UTC]
-Status: Analyzed +Status: Duplicate
 [2015-03-17 15:30 UTC]
Duplicate of

And yes, I agree that we probably can't fix that one in PHP 5.6.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 08:01:32 2024 UTC