Skip to content

Commit

Permalink
Fixed BC break of php_debug_zval_dump
Browse files Browse the repository at this point in the history
It introduced by fixing bug #79830
  • Loading branch information
twose committed Jul 11, 2020
1 parent 56dec3c commit f0b2c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/var.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ PHPAPI void php_debug_zval_dump(zval *struc, int level) /* {{{ */
GC_ADDREF(myht);
}
count = zend_array_count(myht);
php_printf("%sarray(%d) refcount(%u){\n", COMMON, count, Z_REFCOUNTED_P(struc) ? Z_REFCOUNT_P(struc) : 1);
php_printf("%sarray(%d) refcount(%u){\n", COMMON, count, Z_REFCOUNTED_P(struc) ? Z_REFCOUNT_P(struc) - 1 : 1);
ZEND_HASH_FOREACH_KEY_VAL_IND(myht, index, key, val) {
zval_array_element_dump(val, index, key, level);
} ZEND_HASH_FOREACH_END();
Expand Down

0 comments on commit f0b2c2c

Please sign in to comment.