Skip to content

Commit 99d3771

Browse files
committed
Fix check in user filter dtor
obj is always non-null, we need to check for UNDEF here. This was caught by the new assertion introduced in 3ec1400.
1 parent 3ec1400 commit 99d3771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/user_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static void userfilter_dtor(php_stream_filter *thisfilter)
114114
zval func_name;
115115
zval retval;
116116

117-
if (obj == NULL) {
117+
if (Z_ISUNDEF_P(obj)) {
118118
/* If there's no object associated then there's nothing to dispose of */
119119
return;
120120
}

0 commit comments

Comments
 (0)