php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77398 print_r($GLOBALS) causes memory limit to exceed
Submitted: 2019-01-02 11:39 UTC Modified: 2019-01-02 11:45 UTC
From: php at xanady dot de Assigned:
Status: Duplicate Package: *General Issues
PHP Version: 7.3.0 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 - 9 = ?
Subscribe to this entry?

 
 [2019-01-02 11:39 UTC] php at xanady dot de
Description:
------------
Any usage of print_r($GLOBALS) in PHP 7.3 results in an fatal error:

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 534777856 bytes) in /............./test.php on line 2

Works fine in other php versions.

See here: https://3v4l.org/AdLgJ

Test script:
---------------
<?php

print_r($GLOBALS);

?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-02 11:45 UTC] spam2 at rhsoft dot net
you are late to the party
https://bugs.php.net/bug.php?id=77387
 [2019-01-02 11:45 UTC] nikic@php.net
-Status: Open +Status: Duplicate
 [2019-01-02 11:45 UTC] nikic@php.net
Duplicate of bug #77387, which has been fixed earlier today :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 17:01:30 2024 UTC