summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2013-09-10 13:13:33 +0200
committerMichael Wallner <mike@php.net>2013-09-10 13:13:33 +0200
commit449d4c0b1c6ea0f5dfe7b56c99d9fc4f2033d27c (patch)
tree51775f680ae4f322638a34953d0e26a60176df7f /main/SAPI.h
parente3e4d1b144a818b68e9332e75a35b2870c7253b8 (diff)
downloadphp-git-449d4c0b1c6ea0f5dfe7b56c99d9fc4f2033d27c.tar.gz
make reading php://input JIT if enable_post_data_reading=0
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index ed6b0494f4..5525a2aabd 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -120,6 +120,7 @@ typedef struct _sapi_globals_struct {
sapi_request_info request_info;
sapi_headers_struct sapi_headers;
int64_t read_post_bytes;
+ unsigned char post_read;
unsigned char headers_sent;
struct stat global_stat;
char *default_mimetype;
@@ -188,7 +189,7 @@ SAPI_API int sapi_add_header_ex(char *header_line, uint header_line_len, zend_bo
SAPI_API int sapi_send_headers(TSRMLS_D);
SAPI_API void sapi_free_header(sapi_header_struct *sapi_header);
SAPI_API void sapi_handle_post(void *arg TSRMLS_DC);
-
+SAPI_API int sapi_read_post_block(char *buffer, size_t buflen TSRMLS_DC);
SAPI_API int sapi_register_post_entries(sapi_post_entry *post_entry TSRMLS_DC);
SAPI_API int sapi_register_post_entry(sapi_post_entry *post_entry TSRMLS_DC);
SAPI_API void sapi_unregister_post_entry(sapi_post_entry *post_entry TSRMLS_DC);