1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00

MFH: Fixed bug #21074 (Apache2: "ErrorDocument xxx /error.php" broken).

This commit is contained in:
foobar
2003-07-11 04:24:11 +00:00
parent e7175cbecf
commit 894e2f15f0
2 changed files with 19 additions and 7 deletions
+9 -3
View File
@@ -470,9 +470,15 @@ static int php_handler(request_rec *r)
return DECLINED;
}
/* setup standard CGI variables */
ap_add_common_vars(r);
ap_add_cgi_vars(r);
/* Setup the CGI variables if this is the main request */
if (r->main == NULL ||
/* .. or if the sub-request envinronment differs from the main-request. */
r->subprocess_env != r->main->subprocess_env
) {
/* setup standard CGI variables */
ap_add_common_vars(r);
ap_add_cgi_vars(r);
}
ctx = SG(server_context);
if (ctx == NULL) {