diff options
Diffstat (limited to 'rfc1867.c')
| -rw-r--r-- | rfc1867.c | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -244,21 +244,29 @@ static void safe_php_register_variable_ex(char *var, zval *val, zval *track_vars | |||
| 244 | 244 | ||
| 245 | static void register_http_post_files_variable(char *strvar, char *val, zval *http_post_files, zend_bool override_protection TSRMLS_DC) | 245 | static 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 | ||
| 255 | static void register_http_post_files_variable_ex(char *var, zval *val, zval *http_post_files, zend_bool override_protection TSRMLS_DC) | 259 | static 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 | /* |
