summaryrefslogtreecommitdiff
path: root/rfc1867.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc1867.c')
-rw-r--r--rfc1867.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rfc1867.c b/rfc1867.c
index 8285329..b07ed68 100644
--- a/rfc1867.c
+++ b/rfc1867.c
@@ -244,21 +244,29 @@ static void safe_php_register_variable_ex(char *var, zval *val, zval *track_vars
244 244
245static void register_http_post_files_variable(char *strvar, char *val, zval *http_post_files, zend_bool override_protection TSRMLS_DC) 245static void register_http_post_files_variable(char *strvar, char *val, zval *http_post_files, zend_bool override_protection TSRMLS_DC)
246{ 246{
247#if PHP_VERSION_ID < 50400
247 int register_globals = PG(register_globals); 248 int register_globals = PG(register_globals);
248 249
249 PG(register_globals) = 0; 250 PG(register_globals) = 0;
251#endif
250 safe_php_register_variable(strvar, val, http_post_files, override_protection TSRMLS_CC); 252 safe_php_register_variable(strvar, val, http_post_files, override_protection TSRMLS_CC);
253#if PHP_VERSION_ID < 50400
251 PG(register_globals) = register_globals; 254 PG(register_globals) = register_globals;
255#endif
252} 256}
253 257
254 258
255static void register_http_post_files_variable_ex(char *var, zval *val, zval *http_post_files, zend_bool override_protection TSRMLS_DC) 259static void register_http_post_files_variable_ex(char *var, zval *val, zval *http_post_files, zend_bool override_protection TSRMLS_DC)
256{ 260{
261#if PHP_VERSION_ID < 50400
257 int register_globals = PG(register_globals); 262 int register_globals = PG(register_globals);
258 263
259 PG(register_globals) = 0; 264 PG(register_globals) = 0;
265#endif
260 safe_php_register_variable_ex(var, val, http_post_files, override_protection TSRMLS_CC); 266 safe_php_register_variable_ex(var, val, http_post_files, override_protection TSRMLS_CC);
267#if PHP_VERSION_ID < 50400
261 PG(register_globals) = register_globals; 268 PG(register_globals) = register_globals;
269#endif
262} 270}
263 271
264/* 272/*