diff options
| author | Ben Fuhrmannek | 2014-12-18 12:06:55 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2014-12-18 12:06:55 +0100 |
| commit | 68960966324f4701a1f402e97f17ca7870a317a4 (patch) | |
| tree | 5a3c4c7deb4c1805d4a006a7e2cd441abf693286 /header.c | |
| parent | 59dab711ba444a16fc5f7114d628749e1818e303 (diff) | |
removed compatibility to PHP version < 5.4 (by ifdef)
Diffstat (limited to 'header.c')
| -rw-r--r-- | header.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -32,7 +32,7 @@ | |||
| 32 | #include "SAPI.h" | 32 | #include "SAPI.h" |
| 33 | #include "php_variables.h" | 33 | #include "php_variables.h" |
| 34 | 34 | ||
| 35 | #if PHP_VERSION_ID >= 50300 | 35 | #if 1 //PHP_VERSION_ID >= 50300 |
| 36 | static int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) = NULL; | 36 | static int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) = NULL; |
| 37 | #else | 37 | #else |
| 38 | static int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) = NULL; | 38 | static int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) = NULL; |
| @@ -190,7 +190,7 @@ char *suhosin_cookie_decryptor(TSRMLS_D) | |||
| 190 | 190 | ||
| 191 | /* {{{ suhosin_header_handler | 191 | /* {{{ suhosin_header_handler |
| 192 | */ | 192 | */ |
| 193 | #if PHP_VERSION_ID >= 50300 | 193 | #if 1 //PHP_VERSION_ID >= 50300 |
| 194 | int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) | 194 | int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) |
| 195 | #else | 195 | #else |
| 196 | int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) | 196 | int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) |
| @@ -199,7 +199,7 @@ int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct | |||
| 199 | int retval = SAPI_HEADER_ADD, i; | 199 | int retval = SAPI_HEADER_ADD, i; |
| 200 | char *tmp; | 200 | char *tmp; |
| 201 | 201 | ||
| 202 | #if PHP_VERSION_ID >= 50300 | 202 | #if 1 //PHP_VERSION_ID >= 50300 |
| 203 | if (op != SAPI_HEADER_ADD && op != SAPI_HEADER_REPLACE) { | 203 | if (op != SAPI_HEADER_ADD && op != SAPI_HEADER_REPLACE) { |
| 204 | goto suhosin_skip_header_handling; | 204 | goto suhosin_skip_header_handling; |
| 205 | } | 205 | } |
| @@ -294,7 +294,7 @@ int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct | |||
| 294 | suhosin_skip_header_handling: | 294 | suhosin_skip_header_handling: |
| 295 | /* If existing call the sapi header handler */ | 295 | /* If existing call the sapi header handler */ |
| 296 | if (orig_header_handler) { | 296 | if (orig_header_handler) { |
| 297 | #if PHP_VERSION_ID >= 50300 | 297 | #if 1 //PHP_VERSION_ID >= 50300 |
| 298 | retval = orig_header_handler(sapi_header, op, sapi_headers TSRMLS_CC); | 298 | retval = orig_header_handler(sapi_header, op, sapi_headers TSRMLS_CC); |
| 299 | #else | 299 | #else |
| 300 | retval = orig_header_handler(sapi_header, sapi_headers TSRMLS_CC); | 300 | retval = orig_header_handler(sapi_header, sapi_headers TSRMLS_CC); |
