]> granicus.if.org Git - php/commitdiff
- MFH: Removed unnecessary check for array (#46273, noticed by serovov at gmail dot...
authorFelipe Pena <felipe@php.net>
Fri, 24 Oct 2008 10:28:56 +0000 (10:28 +0000)
committerFelipe Pena <felipe@php.net>
Fri, 24 Oct 2008 10:28:56 +0000 (10:28 +0000)
ext/standard/var.c

index 29fc930b42b81394ebd6dc49f69a95a5fbe69103..96b81562b2becd1d2dc81690fec040d20ea932f2 100644 (file)
@@ -424,7 +424,7 @@ PHPAPI void php_var_export(zval **struc, int level TSRMLS_DC)
                        php_printf("\n%*c", level - 1, ' ');
                }
                PUTS ("array (\n");
-               zend_hash_apply_with_arguments(myht, (apply_func_args_t) php_array_element_export, 1, level, (Z_TYPE_PP(struc) == IS_ARRAY ? 0 : 1));
+               zend_hash_apply_with_arguments(myht, (apply_func_args_t) php_array_element_export, 1, level, 0);
                if (level > 1) {
                        php_printf("%*c", level - 1, ' ');
                }