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
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:
48 - 30 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 14:01:30 2024 UTC