|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4659 GLOBALS variable does not report 'array' type but 'string'
Submitted: 2000-05-29 11:48 UTC Modified: 2001-09-09 09:39 UTC
From: cranx at miwo dot hu Assigned:
Status: Not a bug Package: Misbehaving function
PHP Version: Earlier? Upgrade first! OS: redhat linux 5.2 / 2.2.10 / i586
Private report: No CVE-ID: None
 [2000-05-29 11:48 UTC] cranx at miwo dot hu
this one is for 3.0.11, i'll check 3.0.16-win32 as it finishes downloading

gettype($GLOBALS) returns 'string' instead of 'array',
and each($GLOBALS) reports that $GLOBALS is not an array, however i can get 
the global variable values out of it in the standard way $GLOBALS["PHP_SELF"] for eg.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-09 09:39 UTC]
works fine with the latest cvs, I doubt this would ever
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 21:01:24 2020 UTC