PHP 4.0 Bug #6135: mod_php4 HTTP_SERVER_VARS broken (patch included)

From: Date: Sun, 13 Aug 2000 02:24:14 +0000
Subject: PHP 4.0 Bug #6135: mod_php4 HTTP_SERVER_VARS broken (patch included)
Groups: php.dev 
Request: Send a blank email to php-dev+get-28735@lists.php.net to get a copy of this message
From: eric.kidd@pobox.com Operating system: RedHat Linux 6.2 PHP version: 4.0.1pl2 PHP Bug Type: Other Bug description: mod_php4 HTTP_SERVER_VARS broken (patch included) mod_php4 sets up HTTP_SERVER_VARS incorrectly. This problem occurs when: * You're using mod_php4 with Apache * register_globals is off. What happens: * You can still access PHP_SELF and PATH_TRANSLATED. * All other members of HTTP_SERVER_VARS are missing. To fix this bug, apply the following patch to PHP 4.0.1pl2: --- sapi/apache/mod_php4.c-old Sat Aug 12 21:58:57 2000 +++ sapi/apache/mod_php4.c Sat Aug 12 21:59:20 2000 @@ -255,7 +255,7 @@ } else { val = empty_string; } - php_register_variable(elts[i].key, val, NULL ELS_CC PLS_CC); + php_register_variable(elts[i].key, val, track_vars_array ELS_CC PLS_CC); } /* insert special variables */

« previous php.dev (#28735) next »