diff options
author | Zeev Suraski <zeev@php.net> | 1999-04-26 17:26:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-04-26 17:26:37 +0000 |
commit | 3cd0af11eea32f802228004af8fe424c62c8fbfb (patch) | |
tree | 1d273a469ad6e9e2c7e97449fa12665e46156dbf /request_info.c | |
parent | 0f195a79cd25447d03eb2ad9451829b36dcaa49b (diff) | |
download | php-git-3cd0af11eea32f802228004af8fe424c62c8fbfb.tar.gz |
* Get the Apache module to compile again
* Get rid of php3_rqst, use SG(server_context) instead (there's still Apache-specific code,
but it nuked a global)
Diffstat (limited to 'request_info.c')
-rw-r--r-- | request_info.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/request_info.c b/request_info.c index b64ed54461..0ca88fb3f6 100644 --- a/request_info.c +++ b/request_info.c @@ -28,6 +28,7 @@ */ #include "php.h" +#include "SAPI.h" #ifndef THREAD_SAFE PHPAPI php3_request_info request_info; @@ -194,19 +195,22 @@ int php3_init_request_info(void *conf) int php3_init_request_info(void *conf) { const char *buf; + request_rec *r; + SLS_FETCH(); + r = ((request_rec *) SG(server_context)); request_info.current_user = NULL; request_info.current_user_length = 0; - request_info.filename = php3_rqst->filename; - request_info.request_method = php3_rqst->method; - request_info.query_string = php3_rqst->args; - request_info.content_type = table_get(php3_rqst->subprocess_env, "CONTENT_TYPE"); + request_info.filename = r->filename; + request_info.request_method = r->method; + request_info.query_string = r->args; + request_info.content_type = table_get(r->subprocess_env, "CONTENT_TYPE"); - buf = table_get(php3_rqst->subprocess_env, "CONTENT_LENGTH"); + buf = table_get(r->subprocess_env, "CONTENT_LENGTH"); request_info.content_length = (buf ? atoi(buf) : 0); - request_info.cookies = table_get(php3_rqst->subprocess_env, "HTTP_COOKIE"); + request_info.cookies = table_get(r->subprocess_env, "HTTP_COOKIE"); return SUCCESS; } |