Bug #70823 [Opn->Dup]: Array in Class definition has a limit

From: Date: Fri, 30 Oct 2015 22:08:39 +0000
Subject: Bug #70823 [Opn->Dup]: Array in Class definition has a limit
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196935@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70823&edit=1 ID: 70823 Updated by: bwoebi@php.net Reported by: jelte at khepri dot be Summary: Array in Class definition has a limit -Status: Open +Status: Duplicate Type: Bug Package: Class/Object related Operating System: Mac OSX, Linux PHP Version: 5.6.15 Block user comment: N Private report: N New Comment: Duplicate of #68057 Previous Comments: ------------------------------------------------------------------------ [2015-10-30 20:50:58] jelte at khepri dot be Description: ------------ 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: --------------- https://gist.github.com/jelte/b2a9d73aec0211b07f6e Expected result: ---------------- 32769 routes in class Actual result: -------------- 1 routes in class ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70823&edit=1

« previous php.bugs (#196935) next »