summaryrefslogtreecommitdiff
path: root/header.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2014-12-18 12:06:55 +0100
committerBen Fuhrmannek2014-12-18 12:06:55 +0100
commit68960966324f4701a1f402e97f17ca7870a317a4 (patch)
tree5a3c4c7deb4c1805d4a006a7e2cd441abf693286 /header.c
parent59dab711ba444a16fc5f7114d628749e1818e303 (diff)
removed compatibility to PHP version < 5.4 (by ifdef)
Diffstat (limited to 'header.c')
-rw-r--r--header.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/header.c b/header.c
index ddb1296..1a85015 100644
--- a/header.c
+++ b/header.c
@@ -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
36static int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) = NULL; 36static 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
38static int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) = NULL; 38static 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
194int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) 194int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC)
195#else 195#else
196int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC) 196int 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
294suhosin_skip_header_handling: 294suhosin_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);