summaryrefslogtreecommitdiff
path: root/cgi_main.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-06-26 23:21:18 +0000
committerZeev Suraski <zeev@php.net>1999-06-26 23:21:18 +0000
commitd1169e735e72694090e8158ef0c1d9732015f9af (patch)
treea45c594e75634be4598dc2d25cfdc8afaf6fbc3d /cgi_main.c
parentd4f24f19ad60ce0abd50dd48f3eb3cea8d97015c (diff)
downloadphp-git-d1169e735e72694090e8158ef0c1d9732015f9af.tar.gz
Win32/general patches
Diffstat (limited to 'cgi_main.c')
-rw-r--r--cgi_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cgi_main.c b/cgi_main.c
index 63e97346de..8434ae7209 100644
--- a/cgi_main.c
+++ b/cgi_main.c
@@ -205,8 +205,6 @@ int main(int argc, char *argv[])
sapi_startup(&sapi_module);
- SG(request_info).path_translated = NULL;
-
#if WIN32|WINNT
_fmode = _O_BINARY; /*sets default for file streams to binary */
setmode(_fileno(stdin), O_BINARY); /* make the stdio mode be binary */
@@ -262,6 +260,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
}
#endif
+ SG(request_info).path_translated = NULL;
init_request_info(SLS_C);
SG(server_context) = (void *) 1; /* avoid server_context==NULL checks */
CG(extended_info) = 0;