php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #14472 predefined variables update
Submitted: 2001-12-12 18:06 UTC Modified: 2002-05-30 11:10 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: philip at cornado dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.1.0 OS: n/a
Private report: No CVE-ID: None
 [2001-12-12 18:06 UTC] philip at cornado dot com
The "Predefined Variables" section of the manual needs some work, here are some thoughts:

(a) Document that register_globals affects environment variables. For example, if register_globals is turned off then to access DOCUMENT_ROOT one needs to do $HTTP_SERVER_VARS['DOCUMENT_ROOT'] as $DOCUMENT_ROOT will not work.  Also, use of getenv() is available, and now $_SERVER...
This is an important point.  Removing the $ in the description <term>'s seems appropriate too
(b) Link to security.registerglobals
(c) Link commandline to commandline docs
(d) Remove specific reference to php3/apache 1.3.6
(e) List new 4.1.0 variables, keep seperate from the others (for now)
(f) Mention of register_argc_argv near $argc & $argv
(g) Expand docs on difference between ENV and SERVER variables
(h) Add a See also: predefined constants and getenv()
(i) Briefly document the affect of variable scope
(j) Mention $GLOBALS
(k) Between SCRIPT_NAME, PATH_INFO, PHP_SELF and REQUEST_URI, which are available when (cgi vs. mod) and why windows users sometimes get php.exe
(l) Go through user notes, implement/delete as appropriate

Related doc bugs are #11833, #14093 and #14260

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-12 16:29 UTC] philip@php.net
Other notes:

a) Document the $_SESSION "special" features
b) Move non-PHP variables to appendix, as discussed on list

http://marc.theaimsgroup.com/?l=phpdoc&m=101009675307286
 [2002-05-30 11:10 UTC] philip@php.net
Completed awile ago, way to go Torben!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 04:01:33 2024 UTC