* 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.
This commit is contained in:
Zeev Suraski 1999-05-09 08:48:05 +00:00
parent 91cf2e59c4
commit bc415d5a88
56 changed files with 538 additions and 342 deletions

View file

@ -24,8 +24,8 @@ typedef struct {
typedef struct {
zend_llist headers;
sapi_header_struct content_type;
int http_response_code;
unsigned char send_default_content_type;
} sapi_headers_struct;
@ -36,11 +36,17 @@ extern sapi_module_struct sapi_module; /* true global */
typedef struct {
char *request_method;
char *query_string;
char *post_data;
char *cookie_data;
uint content_length;
char *path_translated;
char *request_uri;
char *content_type;
unsigned char headers_only;
} sapi_request_info;
@ -89,9 +95,12 @@ struct _sapi_module_struct {
void (*sapi_error)(int type, const char *error_msg, ...);
int (*header_handler)(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers);
int (*header_handler)(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers SLS_DC);
int (*send_headers)(sapi_headers_struct *sapi_headers SLS_DC);
void (*send_header)(sapi_header_struct *sapi_header, void *server_context);
char *(*read_post)(SLS_D);
char *(*read_cookies)(SLS_D);
};