php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50598 Add $_CLIENT Superglobal
Submitted: 2009-12-28 21:27 UTC Modified: 2009-12-28 22:18 UTC
From: mako281 at gmail dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.3.2RC1 OS: Any
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
10 + 40 = ?
Subscribe to this entry?

 
 [2009-12-28 21:27 UTC] mako281 at gmail dot com
Description:
------------
I think there would be some benefit in separating Client information 
(ie. HTTP Request Information, User-Agent, User Auth Information) from 
the $_SERVER superglobal and creating a new superglobal called 
$_CLIENT. Nothing major, but I think it makes logical sense.

(btw, PHP Version is irrelevent, but it wouldn't let me select that 
option) :P


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-28 22:18 UTC] rasmus@php.net
The reason that it is in the $_SERVER array is because all of these are 
actually set by the web server.  PHP has nothing to do with these.  
Trying to decypher which variables the server gives us were triggered 
by the client and which ones weren't would be a mess.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 09:01:32 2024 UTC