Skip to content

Commit e477a5d

Browse files
committed
Use assertion for user filters
1 parent 6768c04 commit e477a5d

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
@@ -298,12 +298,7 @@ static php_stream_filter *user_filter_factory_create(const char *filtername,
298298
}
299299
efree(wildcard);
300300
}
301-
if (fdat == NULL) {
302-
zend_throw_error(NULL, "Filter \"%s\" is not in the user-filter map, "
303-
"but user-filter-factory was invoked for it."
304-
"This is a bug, please report it at https://bugs.php.net", filtername);
305-
return NULL;
306-
}
301+
ZEND_ASSERT(fdat);
307302
}
308303

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

0 commit comments

Comments
 (0)