|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70823 Array in Class definition has a limit
Submitted: 2015-10-30 20:50 UTC Modified: 2015-10-30 22:08 UTC
From: jelte at khepri dot be Assigned:
Status: Duplicate Package: Class/Object related
PHP Version: 5.6.15 OS: Mac OSX, Linux
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: jelte at khepri dot be
New email:
PHP Version: OS:


 [2015-10-30 20:50 UTC] jelte at khepri dot be
When creating a class with a static array property of 32769 elements, the static array only has 1 element when calling the static property.

When creating the array in the constructor the result is as expected.

Test script below is a simplification of the route caching of Symfony where we noticed this problem.

We have test this in php 5.5, where we get the expected result.

Test script:

Expected result:
32769 routes in class

Actual result:
1 routes in class


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-30 22:08 UTC]
-Status: Open +Status: Duplicate
 [2015-10-30 22:08 UTC]
Duplicate of #68057
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Dec 03 20:05:54 2022 UTC