php.net |  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
Votes:3
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at grudl dot com
New email:
PHP Version: OS:

 

 [2015-03-17 12:06 UTC] david at grudl dot com
Description:
------------
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:
---------------
https://gist.github.com/dg/e785ed8fcef9ee0d5141


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-17 13:08 UTC] laruence@php.net
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] laruence@php.net
-Status: Open +Status: Analyzed
 [2015-03-17 13:55 UTC] laruence@php.net
I'd like mark this as won't fix , and master(php7) works fine... objections?
 [2015-03-17 15:30 UTC] nikic@php.net
-Status: Analyzed +Status: Duplicate
 [2015-03-17 15:30 UTC] nikic@php.net
Duplicate of https://bugs.php.net/bug.php?id=68057.

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: Mon Dec 02 21:01:30 2024 UTC