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

Pull Requests

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: Thu Dec 26 21:01:28 2024 UTC