cvs: php4 /sapi/isapi php4isapi.c

From: Date: Mon, 07 Aug 2000 11:51:21 +0000
Subject: cvs: php4 /sapi/isapi php4isapi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1084@lists.php.net to get a copy of this message
zeev Mon Aug 7 04:51:21 2000 EDT Modified files: /php4/sapi/isapi php4isapi.c Log: Add DOCUMENT_ROOT Index: php4/sapi/isapi/php4isapi.c diff -u php4/sapi/isapi/php4isapi.c:1.48 php4/sapi/isapi/php4isapi.c:1.49 --- php4/sapi/isapi/php4isapi.c:1.48 Wed Aug 2 15:48:43 2000 +++ php4/sapi/isapi/php4isapi.c Mon Aug 7 04:51:21 2000 @@ -376,6 +376,22 @@ } variable = php_strtok_r(NULL, "\r\n", &strtok_buf); } + +#ifdef PHP_WIN32 + { + HSE_URL_MAPEX_INFO humi; + DWORD plen = 1; + + if (lpECB->ServerSupportFunction(lpECB->ConnID, HSE_REQ_MAP_URL_TO_PATH_EX, "/", &plen, (LPDWORD) &humi)) { + /* Remove trailing \ */ + if(humi.lpszPath[strlen(humi.lpszPath) - 1] == '\\') { + humi.lpszPath[strlen(humi.lpszPath) - 1] = '\0'; + } + php_register_variable("DOCUMENT_ROOT", humi.lpszPath, track_vars_array ELS_CC PLS_CC); + } + } +#endif + if (variable_buf!=static_variable_buf) { efree(variable_buf); }

« previous php.cvs (#1084) next »