|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-12 23:03 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 05:00:02 2025 UTC |
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 */