php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #17808 Request: Document all predefined / reserved variables.
Submitted: 2002-06-17 18:39 UTC Modified: 2006-01-19 16:44 UTC
From: ricky at electricarrow dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
 [2002-06-17 18:39 UTC] ricky at electricarrow dot com
The _$SERVER['HTTPS'] (& $HTTP_SERVER_VARS['HTTPS'] too) variable is not documented in http://www.php.net/manual/en/reserved.variables.php.  The variable is only defined if the PHP script is viewed under https: and has a value of 'on'.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-20 12:30 UTC] philip@php.net
Should additional security information be mentioned within this description?  Like, is this 100% reliable?
 [2002-06-24 20:34 UTC] ricky at electricarrow dot com
I'm not sure what security information you are referring to.

As for reliable, it's reliably been working for me for at least the past 3 releases.
 [2002-07-02 17:19 UTC] eru@php.net
There are lots of other variables that get set, such as REDIRECT, when using mod_redirect, but this is server-dependent, whereas the variables stated in the manual-pages are ones, that you can (almost) surely expect on a normal server-installation.
 [2002-07-02 17:32 UTC] mfischer@php.net
Well, it's actually a "Won't fix" then a bogus.
 [2002-07-03 16:55 UTC] philip@php.net
Making this a feature request to document and categorize every possible predefined / reserved variable.  A fun task indeed :)

A few things to keep in mind:

- When the variable is or isn't available (like HTTP_HOST, 
  HTTP_REFERER, HTTPS, PHP_SELF, HTTP_RAW_POST_DATA ...)
- Keep in mind web servers, operating systems, modes 
  (cgi, module, cli), and related settings/requirements.
- Which ones are commonly available.
- See also related sources, like HTTP spec.
  
The creative question of the day is how to display and categorize all this information in a friendly manner.
 [2002-07-03 17:04 UTC] eru@php.net
Moving it to "Verified", as we're in Bughunt-mode...

 [2005-11-15 00:05 UTC] dmytton@php.net
A useful table of all the available vars on different servers can be found at http://koivi.com/apache-iis-php-server-array.php - will probably be handy for expanding the list.
 [2006-01-19 16:44 UTC] sniper@php.net
They're all documented. If some is missing, report separately.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC