mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
- MFH: Removed unnecessary check for array (#46273, noticed by serovov at gmail dot com)
This commit is contained in:
parent
96103c8793
commit
ff8246ff6e
@ -410,7 +410,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 TSRMLS_CC, (apply_func_args_t) php_array_element_export, 1, level, (Z_TYPE_PP(struc) == IS_ARRAY ? 0 : 1));
|
||||
zend_hash_apply_with_arguments(myht TSRMLS_CC, (apply_func_args_t) php_array_element_export, 1, level, 0);
|
||||
if (level > 1) {
|
||||
php_printf("%*c", level - 1, ' ');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user