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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at xanady dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Wed Dec 04 08:01:29 2024 UTC