php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3926
Submitted: 2000-03-25 16:43 UTC Modified: 2000-07-02 04:05 UTC
From: leon at leonatkinson dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (25/03/2000) OS: all
Private report: No CVE-ID: None
 [2000-03-25 16:43 UTC] leon at leonatkinson dot com
Try this amusing exercise:

<pre>
<? 
	print_r($GLOBALS);
?>
</pre>

This goes on infinitely because the GLOBALS
array contains itself.  It would be nice if print_r
would avoid this.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-02 04:05 UTC] sterling at cvs dot php dot net
A big warning is added about this in the documentation.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Dec 09 08:05:52 2022 UTC