summaryrefslogtreecommitdiff
path: root/suhosin.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2015-01-15 17:09:32 +0100
committerBen Fuhrmannek2015-01-15 17:09:32 +0100
commit5335470004c0e97fd5f4d4a2d0371693cb26fccc (patch)
treeb058967648f7069b5f43a1c23a7c7b8f56460959 /suhosin.c
parent68960966324f4701a1f402e97f17ca7870a317a4 (diff)
removed <5.4 compatibility code
Diffstat (limited to 'suhosin.c')
-rw-r--r--suhosin.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/suhosin.c b/suhosin.c
index b1bc47b..76cdac1 100644
--- a/suhosin.c
+++ b/suhosin.c
@@ -1058,12 +1058,9 @@ PHP_MINIT_FUNCTION(suhosin)
1058 php_register_info_logo(SUHOSIN_LOGO_GUID, "image/jpeg", suhosin_logo, sizeof(suhosin_logo)); 1058 php_register_info_logo(SUHOSIN_LOGO_GUID, "image/jpeg", suhosin_logo, sizeof(suhosin_logo));
1059#endif 1059#endif
1060 1060
1061#if PHP_VERSION_ID < 50400 //PHP_MAJOR_VERSION < 5 1061#if PHP_VERSION_ID < 50400
1062#error Suhosin Extension is not designed to run with PHP versions lower than 5.4. 1062#error Suhosin Extension is not designed to run with PHP versions lower than 5.4.
1063#endif 1063#endif
1064#if 0 //PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION <= 2 && !SUHOSIN_DEBUG
1065 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.");
1066#endif
1067 1064
1068#if !defined(HAVE_PHP_SESSION) && !defined(SUHOSIN_NO_SESSION_WARNING) 1065#if !defined(HAVE_PHP_SESSION) && !defined(SUHOSIN_NO_SESSION_WARNING)
1069 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Suhosin was compiled without session support, which is probably not what you want. All session related features will not be available, e.g. session encryption. If session support is really not needed, recompile Suhosin with -DSUHOSIN_NO_SESSION_WARNING=1 to suppress this warning."); 1066 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Suhosin was compiled without session support, which is probably not what you want. All session related features will not be available, e.g. session encryption. If session support is really not needed, recompile Suhosin with -DSUHOSIN_NO_SESSION_WARNING=1 to suppress this warning.");