diff options
| author | Zeev Suraski <zeev@php.net> | 2000-04-08 11:16:19 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2000-04-08 11:16:19 +0000 |
| commit | 85e9d69f23ed73b941a527cd74275dd79575b8be (patch) | |
| tree | fb51a93f2b033e6f484361db0eb27ae4de74d9b4 /sapi/apache/mod_php4.c | |
| parent | cd3305a2d10740ff6d7c54e4fba62c05af12078d (diff) | |
| download | php-git-85e9d69f23ed73b941a527cd74275dd79575b8be.tar.gz | |
@- Fixed several problems with the PATH_TRANSLATED and PHP_SELF under Apache
@ (Paul Gregg & Zeev)
Diffstat (limited to 'sapi/apache/mod_php4.c')
| -rw-r--r-- | sapi/apache/mod_php4.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index fe062e08eb..cb9447ea45 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -243,7 +243,7 @@ static void sapi_apache_register_server_variables(zval *track_vars_array ELS_DC if (elts[i].val) { val = elts[i].val; - if (!strcmp(val, "SCRIPT_FILENAME")) { + if (!strcmp(elts[i].key, "SCRIPT_FILENAME")) { script_filename = val; } } else { @@ -254,9 +254,9 @@ static void sapi_apache_register_server_variables(zval *track_vars_array ELS_DC /* insert special variables */ if (script_filename) { - php_register_variable("PATH_TRANSLATED", script_filename, NULL ELS_CC PLS_CC); + php_register_variable("PATH_TRANSLATED", script_filename, track_vars_array ELS_CC PLS_CC); } - php_register_variable("PHP_SELF", ((request_rec *) SG(server_context))->uri, NULL ELS_CC PLS_CC); + php_register_variable("PHP_SELF", ((request_rec *) SG(server_context))->uri, track_vars_array ELS_CC PLS_CC); } static int |
