]> granicus.if.org Git - php/commitdiff
- useless #ifdef
authorPierre Joye <pajoye@php.net>
Sat, 5 Sep 2009 17:39:18 +0000 (17:39 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 5 Sep 2009 17:39:18 +0000 (17:39 +0000)
ext/filter/filter.c
ext/filter/logical_filters.c

index b520d9f52289a7c5f002f5386c2d544c0f2eb2e9..1067d90d32c604d346adc5e00e6f0c5f64cef9af 100644 (file)
@@ -485,11 +485,6 @@ static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int
                        INIT_PZVAL(tmp_new_var);
                        php_zval_filter(&tmp_new_var, IF_G(default_filter), IF_G(default_filter_flags), NULL, NULL/*charset*/, 0 TSRMLS_CC);
                }
-#if PHP_VERSION_ID<60000
-               else if (PG(magic_quotes_gpc)) {
-                       Z_STRVAL(new_var) = php_addslashes(*val, Z_STRLEN(new_var), &Z_STRLEN(new_var), 0 TSRMLS_CC);
-               }
-#endif
                else {
                        Z_STRVAL(new_var) = estrndup(*val, val_len);
                }
@@ -554,11 +549,7 @@ static zval *php_filter_get_storage(long arg TSRMLS_DC)/* {{{ */
 
 {
        zval *array_ptr = NULL;
-       zend_bool jit_initialization = (PG(auto_globals_jit)
-#if PHP_VERSION_ID<60000
-        && !PG(register_globals) && !PG(register_long_arrays)
-#endif
-        );
+       zend_bool jit_initialization = (PG(auto_globals_jit));
 
        switch (arg) {
                case PARSE_GET:
index fb6a39a54ed38af271693e8749ecb12383989e28..43d387a861d5f807fd96d3911f09b8526571fcab 100644 (file)
 #include "ext/standard/url.h"
 #include "ext/pcre/php_pcre.h"
 
-#if PHP_MAJOR_VERSION <= 6
-#define zend_ascii_hash_find(hash, name, sizeof_name, val) zend_hash_find(hash, name, sizeof_name, val)
-#endif
-
 #include "zend_multiply.h"
 
 #if HAVE_ARPA_INET_H