Skip to content

Commit 6777630

Browse files
committed
Fix php_user_filter::filter() return value
We specify that this needs to return an int, so do so. PSFS_ERR_FATAL has value 0 which is what the null value previously returned would be interpreted as.
1 parent 5f8489a commit 6777630

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/standard/user_filters.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ PHP_METHOD(php_user_filter, filter)
4646
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rrzb", &in, &out, &consumed, &closing) == FAILURE) {
4747
RETURN_THROWS();
4848
}
49+
50+
RETURN_LONG(PSFS_ERR_FATAL);
4951
}
5052

5153
PHP_METHOD(php_user_filter, onCreate)

0 commit comments

Comments
 (0)