diff options
author | Ben Mansell <joosters@php.net> | 2000-05-15 12:40:12 +0000 |
---|---|---|
committer | Ben Mansell <joosters@php.net> | 2000-05-15 12:40:12 +0000 |
commit | 10503a3b92619a63a7873f0c1bc81c16486ff370 (patch) | |
tree | 907ef47ef80a94d3180b97b1d389ceed307581d5 /sapi/isapi/php4isapi.c | |
parent | 2a6fbb620c5d296a8634fb8e8a312861a35025c9 (diff) | |
download | php-git-10503a3b92619a63a7873f0c1bc81c16486ff370.tar.gz |
Define PHP_SELF properly with Zeus+ISAPI
Diffstat (limited to 'sapi/isapi/php4isapi.c')
-rw-r--r-- | sapi/isapi/php4isapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index db0349ca69..51894b001b 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -334,7 +334,11 @@ static void sapi_isapi_register_server_variables(zval *track_vars_array ELS_DC S } /* PHP_SELF support */ +#ifdef WITH_ZEUS + if (lpECB->GetServerVariable(lpECB->ConnID, "PATH_INFO", static_variable_buf, &variable_len) +#else if (lpECB->GetServerVariable(lpECB->ConnID, "SCRIPT_NAME", static_variable_buf, &variable_len) +#endif && static_variable_buf[0]) { php_register_variable("PHP_SELF", static_variable_buf, track_vars_array ELS_CC PLS_CC); } |