diff options
| author | Sascha Schumann <sas@php.net> | 2000-10-26 18:18:21 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2000-10-26 18:18:21 +0000 |
| commit | 2b060b3bf3018ae8db824d2a87bb8cefb591d059 (patch) | |
| tree | b49eb2ebafe65e82b6725e75a8d04edc0e80bbd2 /main/SAPI.h | |
| parent | 52e45f514bab566175d520c99c67a819734c2d67 (diff) | |
| download | php-git-2b060b3bf3018ae8db824d2a87bb8cefb591d059.tar.gz | |
Add sapi_add_header_ex, which lets you specify whether you want
to add or replace a header.
Diffstat (limited to 'main/SAPI.h')
| -rw-r--r-- | main/SAPI.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/SAPI.h b/main/SAPI.h index 918912b717..e551a32165 100644 --- a/main/SAPI.h +++ b/main/SAPI.h @@ -41,6 +41,7 @@ typedef struct { char *header; uint header_len; + zend_bool replace; } sapi_header_struct; @@ -130,7 +131,9 @@ SAPI_API void sapi_activate(SLS_D); SAPI_API void sapi_deactivate(SLS_D); SAPI_API void sapi_initialize_empty_request(SLS_D); -SAPI_API int sapi_add_header(char *header_line, uint header_line_len, zend_bool duplicate); +SAPI_API int sapi_add_header_ex(char *header_line, uint header_line_len, zend_bool duplicate, zend_bool replace); +#define sapi_add_header(header_line, header_line_len, duplicate) \ + sapi_add_header_ex((header_line), (header_line_len), (duplicate), 1) SAPI_API int sapi_send_headers(void); SAPI_API void sapi_free_header(sapi_header_struct *sapi_header); SAPI_API void sapi_handle_post(void *arg SLS_DC); |
