[doc-en] master: Remove the non-existent PHP_DOCUMENT_ROOT variable from the CGI security page (#6115)
| From: | Louis-Arnaud via GitHub | Date: | Thu, 19 Nov 2026 13:40:36 +0000 |
| Subject: | [doc-en] master: Remove the non-existent PHP_DOCUMENT_ROOT variable from the CGI security page (#6115) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23984@lists.php.net to get a copy of this message | ||
Author: Louis-Arnaud (lacatoire)
Committer: GitHub (web-flow)
Pusher: lacatoire
Date: 2026-11-19T14:40:33+01:00
Commit: https://github.com/php/doc-en/commit/437b7fa0b2cf68774438bbe1f91efab2c7892373
Raw diff: https://github.com/php/doc-en/commit/437b7fa0b2cf68774438bbe1f91efab2c7892373.diff
Remove the non-existent PHP_DOCUMENT_ROOT variable from the CGI security page (#6115)
Changed paths:
M security/cgi-bin.xml
Diff:
diff --git a/security/cgi-bin.xml b/security/cgi-bin.xml
index eea554a8d008..247d74fba291 100644
--- a/security/cgi-bin.xml
+++ b/security/cgi-bin.xml
@@ -155,9 +155,8 @@ AddHandler php-script .php
<simpara>
You can set the PHP script document root by the configuration
directive <link linkend="ini.doc-root">doc_root</link> in the
- <link linkend="configuration.file">configuration file</link>, or
- you can set the environment variable
- <envar>PHP_DOCUMENT_ROOT</envar>. If it is set, the
<acronym>CGI</acronym>
+ <link linkend="configuration.file">configuration file</link>.
+ It must be an absolute path. If it is set, the <acronym>CGI</acronym>
version of PHP will always construct the file name to open with this
<parameter>doc_root</parameter> and the path information in the
request, so you can be sure no script is executed outside this