diff options
| author | Zeev Suraski <zeev@php.net> | 1999-05-09 08:48:05 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-05-09 08:48:05 +0000 |
| commit | bc415d5a8883bbe5b15c12e9a30f916c8010204a (patch) | |
| tree | 216499649825b9005a59c0e3c5b5be67c2092871 /ext/standard/post.c | |
| parent | 91cf2e59c47a30f075fe1c69d17550b956df9865 (diff) | |
| download | php-git-bc415d5a8883bbe5b15c12e9a30f916c8010204a.tar.gz | |
* Finalizing the PHP version of SAPI. Support POST and cookies among other things.
* Fully implement ISAPI support - POST and cookies among other things.
* Almost completely rewrote phpinfo(). Allow modules to easily display their
information in phpinfo() without modifying phpinfo() itself (prototype for
the module info function was changed, thus the large amount of updated module
files).
* Initial extended SAPI support for Apache, completely untested.
* CGI now uses SAPI fully as well.
Diffstat (limited to 'ext/standard/post.c')
| -rw-r--r-- | ext/standard/post.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/standard/post.c b/ext/standard/post.c index f961602e77..7be502ff69 100644 --- a/ext/standard/post.c +++ b/ext/standard/post.c @@ -42,6 +42,7 @@ * This reads the post form data into a string. * Remember to free this pointer when done with it. */ +#if APACHE static char *php3_getpost(pval *http_post_vars PLS_DC) { char *buf = NULL; @@ -149,6 +150,14 @@ static char *php3_getpost(pval *http_post_vars PLS_DC) #endif return (buf); } +#else +static char *php3_getpost(pval *http_post_vars PLS_DC) +{ + SLS_FETCH(); + + return SG(request_info).post_data; +} +#endif /* @@ -352,7 +361,7 @@ void php3_treat_data(int arg, char *str) res = (char *) estrdup(var); } } else if (arg == PARSE_COOKIE) { /* Cookie data */ - var = (char *)request_info.cookies; + var = SG(request_info).cookie_data; if (var && *var) { res = (char *) estrdup(var); } |
