diff options
author | Sascha Schumann <sas@php.net> | 2000-08-20 14:29:00 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-08-20 14:29:00 +0000 |
commit | 1d68a02df36170851b4c3e72faea43129022642e (patch) | |
tree | 30e9672cd229cac4cd65dce9f06d8fbf9474a446 /sapi/isapi/php4isapi.c | |
parent | 320105bcd8540a6673e54106c03d569249af48f9 (diff) | |
download | php-git-1d68a02df36170851b4c3e72faea43129022642e.tar.gz |
The status quo in PHP is that the current directory is initialized
to the directory where the executing script is located.
Since this needs to be implemented for all SAPI modules anyway, this
change moves the functionality to php_execute_script() and gets rid
of the per-module code.
Diffstat (limited to 'sapi/isapi/php4isapi.c')
-rw-r--r-- | sapi/isapi/php4isapi.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sapi/isapi/php4isapi.c b/sapi/isapi/php4isapi.c index 5cc2ba0019..461b9287ca 100644 --- a/sapi/isapi/php4isapi.c +++ b/sapi/isapi/php4isapi.c @@ -20,12 +20,10 @@ #ifdef PHP_WIN32 # include <windows.h> # include <process.h> -# define SEPARATOR '\\' #else # define __try # define __except(val) # define __declspec(foo) -# define SEPARATOR '/' #endif #include <httpext.h> @@ -482,15 +480,6 @@ static void init_request_info(sapi_globals_struct *sapi_globals, LPEXTENSION_CON } else { SG(request_info).headers_only = 0; } - { - char *path_end = strrchr(SG(request_info).path_translated, SEPARATOR); - - if (path_end) { - *path_end = 0; - V_CHDIR(SG(request_info).path_translated); - *path_end = SEPARATOR; - } - } if (!bFilterLoaded) { /* we don't have valid ISAPI Filter information */ SG(request_info).auth_user = SG(request_info).auth_password = NULL; } |