diff options
author | Frank M. Kromann <fmk@php.net> | 2000-04-15 19:20:43 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2000-04-15 19:20:43 +0000 |
commit | 2e2642cfb33ffe308b6acea2bfcf7f37f999226b (patch) | |
tree | d43b93e00c9186ccdabf47ab1921b3dc9d647c15 /sapi/isapi/php4isapi.c | |
parent | d748c0827d27d22829fd28fba968a32db7fd45fd (diff) | |
download | php-git-2e2642cfb33ffe308b6acea2bfcf7f37f999226b.tar.gz |
Adding $PHP_SELF variable for compatibility with other platforms
Diffstat (limited to 'sapi/isapi/php4isapi.c')
-rw-r--r-- | sapi/isapi/php4isapi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index 3ff47766dd..378d142200 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -322,6 +322,8 @@ static void sapi_isapi_register_server_variables(zval *track_vars_array ELS_DC S if (lpECB->GetServerVariable(lpECB->ConnID, *p, static_variable_buf, &variable_len) && static_variable_buf[0]) { php_register_variable(*p, static_variable_buf, track_vars_array ELS_CC PLS_CC); + if (strcmp(*p, "SCRIPT_NAME") == 0) + php_register_variable("PHP_SELF", static_variable_buf, track_vars_array ELS_CC PLS_CC); } else if (GetLastError() == ERROR_INSUFFICIENT_BUFFER) { variable_buf = (char *) emalloc(variable_len); if (lpECB->GetServerVariable(lpECB->ConnID, *p, variable_buf, &variable_len) |