Skip to content

Commit c0aea24

Browse files
committed
Use assertion for user filters
1 parent d937df7 commit c0aea24

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ext/standard/user_filters.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,7 @@ static php_stream_filter *user_filter_factory_create(const char *filtername,
299299
}
300300
efree(wildcard);
301301
}
302-
if (fdat == NULL) {
303-
zend_throw_error(NULL, "Filter \"%s\" is not in the user-filter map, "
304-
"but user-filter-factory was invoked for it."
305-
"This is a bug, please report it at https://bugs.php.net", filtername);
306-
return NULL;
307-
}
302+
ZEND_ASSERT(fdat);
308303
}
309304

310305
/* bind the classname to the actual class */

0 commit comments

Comments
 (0)