Skip to content

Commit 099564a

Browse files
committed
Fix streamfuncs.c due to zend_list_close() voidification
1 parent 073a4a0 commit 099564a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ext/standard/streamsfuncs.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,13 +1245,9 @@ PHP_FUNCTION(stream_filter_remove)
12451245
RETURN_FALSE;
12461246
}
12471247

1248-
if (zend_list_close(Z_RES_P(zfilter)) == FAILURE) {
1249-
php_error_docref(NULL, E_WARNING, "Could not invalidate filter, not removing");
1250-
RETURN_FALSE;
1251-
} else {
1252-
php_stream_filter_remove(filter, 1);
1253-
RETURN_TRUE;
1254-
}
1248+
zend_list_close(Z_RES_P(zfilter));
1249+
php_stream_filter_remove(filter, 1);
1250+
RETURN_TRUE;
12551251
}
12561252
/* }}} */
12571253

0 commit comments

Comments
 (0)