php.net |  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
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: cranx at miwo dot hu
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-09 09:39 UTC] sterling@php.net
works fine with the latest cvs, I doubt this would ever
happen...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC