Bug #79921 [NEW]: memory exhausted, on array definition, in require
| From: | chandleg at wizardsworks dot org | Date: | Sat, 01 Aug 2020 08:21:45 +0000 |
| Subject: | Bug #79921 [NEW]: memory exhausted, on array definition, in require | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-228356@lists.php.net to get a copy of this message | ||
From: chandleg at wizardsworks dot org
Operating system: Slackware Linux
PHP version: 7.2.32
Package: Unknown/Other Function
Bug Type: Bug
Bug description:memory exhausted, on array definition, in require
Description:
------------
I have a 10006 line "config" file, which is an array set for data
values.
The format is: array(int, int, int, float, array, array, array)
Exerpt:
<?php
$star_map = array (
array(-587, 418, -182, 849.85998846869, array(2, 2), array(5.96541E+29,
5.96541E+29), array(278538822.144, 278538822.144),
array(-949, 457, -877, 1603.2251869279, array(2, 2), array(5.96541E+29,
5.96541E+29), array(278538822.144, 278538822.144),
array(1087, -401, 144, 1543.9799221492, array(2, 2), array(5.96541E+29,
5.96541E+29), array(278538822.144, 278538822.144),
........
array(-685, 113, -82, 972.20059658488, array(2), array(5.96541E+29),
array(278538822.144),
array(554, 244, -57, 785.54503371863, array(2, 2), array(5.96541E+29,
5.96541E+29), array(278538822.144, 278538822.144),
array(1022, -77, -865, 1684.3969247182, array(2, 2), array(5.96541E+29,
5.96541E+29), array(278538822.144, 278538822.144),
);
?>
Test script:
---------------
<?php
require "./config.php";
?>
Expected result:
----------------
I would expect it to properly import the inline code.
Actual result:
--------------
redacted:~/public_html/game/tmp$ php index.php
PHP Parse error: memory exhausted in ./chart.php on line 2500
--
Edit bug report at https://bugs.php.net/bug.php?id=79921&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79921&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79921&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79921&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79921&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79921&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79921&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79921&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79921&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79921&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79921&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79921&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79921&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79921&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79921&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79921&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79921&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79921&r=mysqlcfg