From 68960966324f4701a1f402e97f17ca7870a317a4 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Thu, 18 Dec 2014 12:06:55 +0100 Subject: removed compatibility to PHP version < 5.4 (by ifdef) --- header.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'header.c') diff --git a/header.c b/header.c index ddb1296..1a85015 100644 --- a/header.c +++ b/header.c @@ -32,7 +32,7 @@ #include "SAPI.h" #include "php_variables.h" -#if PHP_VERSION_ID >= 50300 +#if 1 //PHP_VERSION_ID >= 50300 static int (*orig_header_handler)(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) = NULL; #else 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) /* {{{ suhosin_header_handler */ -#if PHP_VERSION_ID >= 50300 +#if 1 //PHP_VERSION_ID >= 50300 int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_header_op_enum op, sapi_headers_struct *sapi_headers TSRMLS_DC) #else 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 int retval = SAPI_HEADER_ADD, i; char *tmp; -#if PHP_VERSION_ID >= 50300 +#if 1 //PHP_VERSION_ID >= 50300 if (op != SAPI_HEADER_ADD && op != SAPI_HEADER_REPLACE) { goto suhosin_skip_header_handling; } @@ -294,7 +294,7 @@ int suhosin_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct suhosin_skip_header_handling: /* If existing call the sapi header handler */ if (orig_header_handler) { -#if PHP_VERSION_ID >= 50300 +#if 1 //PHP_VERSION_ID >= 50300 retval = orig_header_handler(sapi_header, op, sapi_headers TSRMLS_CC); #else retval = orig_header_handler(sapi_header, sapi_headers TSRMLS_CC); -- cgit v1.3