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) --- suhosin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'suhosin.c') diff --git a/suhosin.c b/suhosin.c index 5b24789..b1bc47b 100644 --- a/suhosin.c +++ b/suhosin.c @@ -1058,10 +1058,10 @@ PHP_MINIT_FUNCTION(suhosin) php_register_info_logo(SUHOSIN_LOGO_GUID, "image/jpeg", suhosin_logo, sizeof(suhosin_logo)); #endif -#if PHP_MAJOR_VERSION < 5 -#error Suhosin Extension is not designed to run with PHP 4 and below. +#if PHP_VERSION_ID < 50400 //PHP_MAJOR_VERSION < 5 +#error Suhosin Extension is not designed to run with PHP versions lower than 5.4. #endif -#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION <= 2 && !SUHOSIN_DEBUG +#if 0 //PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION <= 2 && !SUHOSIN_DEBUG php_error_docref(NULL TSRMLS_CC, E_WARNING, "Suhosin Extension does not officially support PHP 5.2 and below anymore, because it is discontinued. Use it at your own risk."); #endif -- cgit v1.3