diff options
| author | Stefan Esser | 2012-01-11 20:07:59 +0100 |
|---|---|---|
| committer | Stefan Esser | 2012-01-11 20:07:59 +0100 |
| commit | 512ce777e754db8f954b7431f7881c852230e435 (patch) | |
| tree | b98b2048d4110ade181cb5c951127f6de87f258f /suhosin.c | |
| parent | 70310b8f359e1276e3fa6ed326a8f91d9b02f0fc (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.c | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -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 | /* }}} */ |
