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 /ext/standard/pageinfo.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 'ext/standard/pageinfo.c')
| -rw-r--r-- | ext/standard/pageinfo.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/standard/pageinfo.c b/ext/standard/pageinfo.c index e22fce3afd..35b4a471a5 100644 --- a/ext/standard/pageinfo.c +++ b/ext/standard/pageinfo.c @@ -30,6 +30,7 @@ #include "php.h" #include "pageinfo.h" +#include "SAPI.h" #include <stdio.h> #include <stdlib.h> @@ -59,6 +60,11 @@ static void _php3_statpage(void) #if !APACHE char *path; struct stat sb; +#else + request_rec *r; + SLS_FETCH(); + + r = ((request_rec *) SG(server_context)); #endif #if APACHE @@ -67,9 +73,9 @@ static void _php3_statpage(void) values. We can afford it, and it means we don't have to worry about resetting the static variables after every hit. */ - page_uid = php3_rqst->finfo.st_uid; - page_inode = php3_rqst->finfo.st_ino; - page_mtime = php3_rqst->finfo.st_mtime; + page_uid = r ->finfo.st_uid; + page_inode = r->finfo.st_ino; + page_mtime = r->finfo.st_mtime; #else if (page_uid == -1) { path = request_info.filename; |
