summaryrefslogtreecommitdiff
path: root/treat_data.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2014-12-18 12:06:55 +0100
committerBen Fuhrmannek2014-12-18 12:06:55 +0100
commit68960966324f4701a1f402e97f17ca7870a317a4 (patch)
tree5a3c4c7deb4c1805d4a006a7e2cd441abf693286 /treat_data.c
parent59dab711ba444a16fc5f7114d628749e1818e303 (diff)
removed compatibility to PHP version < 5.4 (by ifdef)
Diffstat (limited to 'treat_data.c')
-rw-r--r--treat_data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/treat_data.c b/treat_data.c
index 15e721d..9dc86d1 100644
--- a/treat_data.c
+++ b/treat_data.c
@@ -39,7 +39,7 @@ SAPI_TREAT_DATA_FUNC(suhosin_treat_data)
39 int free_buffer = 0; 39 int free_buffer = 0;
40 char *strtok_buf = NULL; 40 char *strtok_buf = NULL;
41 41
42#if PHP_VERSION_ID >= 50311 42#if 1 //PHP_VERSION_ID >= 50311
43 long count = 0; 43 long count = 0;
44#endif 44#endif
45 45
@@ -148,7 +148,7 @@ SAPI_TREAT_DATA_FUNC(suhosin_treat_data)
148 } 148 }
149 val = strchr(var, '='); 149 val = strchr(var, '=');
150 150
151#if PHP_VERSION_ID >= 50311 151#if 1 //PHP_VERSION_ID >= 50311
152 if (++count > PG(max_input_vars)) { 152 if (++count > PG(max_input_vars)) {
153 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars)); 153 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input variables exceeded %ld. To increase the limit change max_input_vars in php.ini.", PG(max_input_vars));
154 break; 154 break;
@@ -210,7 +210,7 @@ SAPI_TREAT_DATA_FUNC(suhosin_treat_data)
210 210
211void suhosin_hook_treat_data() 211void suhosin_hook_treat_data()
212{ 212{
213#if PHP_VERSION_ID < 50400 213#if 0 //PHP_VERSION_ID < 50400
214 sapi_register_treat_data(suhosin_treat_data); 214 sapi_register_treat_data(suhosin_treat_data);
215#else 215#else
216 TSRMLS_FETCH(); 216 TSRMLS_FETCH();