summaryrefslogtreecommitdiff
path: root/suhosin.c
diff options
context:
space:
mode:
authorStefan Esser2012-01-11 20:07:59 +0100
committerStefan Esser2012-01-11 20:07:59 +0100
commit512ce777e754db8f954b7431f7881c852230e435 (patch)
treeb98b2048d4110ade181cb5c951127f6de87f258f /suhosin.c
parent70310b8f359e1276e3fa6ed326a8f91d9b02f0fc (diff)
Ensure that people using PHP 4 will fail to use Suhosin Extension.
Also ensure that people using PHP 5.2.x are warned that it is not supported anymore.
Diffstat (limited to '')
-rw-r--r--suhosin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/suhosin.c b/suhosin.c
index aa34ca3..144bceb 100644
--- a/suhosin.c
+++ b/suhosin.c
@@ -1083,6 +1083,13 @@ PHP_MINIT_FUNCTION(suhosin)
1083 "This will cause problems like POST not working. Please tell your distributor to fix this."); 1083 "This will cause problems like POST not working. Please tell your distributor to fix this.");
1084 }*/ 1084 }*/
1085#endif 1085#endif
1086#if PHP_MAJOR_VERSION < 5
1087 php_error_docref(NULL TSRMLS_CC, E_ERROR, "Suhosin Extension is not designed to run with PHP 4 and below. Erroring Out.");
1088#endif
1089#if PHP_MAJOR_VERSION == 5 && PHP_MINUR_VERSION <= 2
1090 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Suhosin Extension does not officially support PHP 5.2 anymore, because it is discontinued. Use it at your own risk.");
1091#endif
1092
1086 return SUCCESS; 1093 return SUCCESS;
1087} 1094}
1088/* }}} */ 1095/* }}} */