Bug #70823 [NEW]: Array in Class definition has a limit

From: Date: Fri, 30 Oct 2015 20:51:00 +0000
Subject: Bug #70823 [NEW]: Array in Class definition has a limit
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196933@lists.php.net to get a copy of this message
From:             jelte at khepri dot be
Operating system: Mac OSX, Linux
PHP version:      5.6.15
Package:          Class/Object related
Bug Type:         Bug
Bug description:Array in Class definition has a limit

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 bug report at https://bugs.php.net/bug.php?id=70823&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=70823&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=70823&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=70823&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=70823&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=70823&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=70823&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=70823&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=70823&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=70823&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=70823&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=70823&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=70823&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=70823&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70823&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=70823&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=70823&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=70823&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70823&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=70823&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=70823&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#196933) next »