summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index 1a2adbf10c..d4a558e3e7 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -50,6 +50,7 @@
typedef struct {
char *header;
uint header_len;
+ zend_bool replace;
} sapi_header_struct;
@@ -169,8 +170,6 @@ typedef struct {
typedef enum { /* Parameter: */
SAPI_HEADER_REPLACE, /* sapi_header_line* */
SAPI_HEADER_ADD, /* sapi_header_line* */
- SAPI_HEADER_DELETE, /* sapi_header_line* */
- SAPI_HEADER_DELETE_ALL, /* void */
SAPI_HEADER_SET_STATUS /* int */
} sapi_header_op_enum;
@@ -228,7 +227,7 @@ struct _sapi_module_struct {
void (*sapi_error)(int type, const char *error_msg, ...);
- int (*header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC);
+ int (*header_handler)(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC);
int (*send_headers)(sapi_headers_struct *sapi_headers TSRMLS_DC);
void (*send_header)(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC);
@@ -276,6 +275,8 @@ struct _sapi_post_entry {
/* header_handler() constants */
#define SAPI_HEADER_ADD (1<<0)
+#define SAPI_HEADER_DELETE_ALL (1<<1)
+#define SAPI_HEADER_SEND_NOW (1<<2)
#define SAPI_HEADER_SENT_SUCCESSFULLY 1