Skip to content

Commit

Permalink
zval_refcount_p can't get string refcount
Browse files Browse the repository at this point in the history
In php debug mode
  • Loading branch information
huanghantao committed Jan 8, 2021
1 parent c28517e commit 0f7ca11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yasd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static PHP_FUNCTION(Yasd_Zval_getRefCount) {
if (!Z_REFCOUNTED_P(zv) && !(Z_TYPE_P(zv) == IS_ARRAY) && !(Z_TYPE_P(zv) == IS_STRING)) {
RETURN_NULL();
}
RETURN_LONG(zval_refcount_p(zv));
RETURN_LONG(GC_REFCOUNT(Z_COUNTED_P(zv)));
}

// clang-format off
Expand Down

0 comments on commit 0f7ca11

Please sign in to comment.