Stop looking once we've found a matching filter.

This commit is contained in:
Sara Golemon 2003-10-28 23:29:16 +00:00
parent c9b49af990
commit 495fd01ca4

View File

@ -238,7 +238,7 @@ PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, zval
wildname = estrdup(filtername);
period = wildname + (period - filtername);
while (period) {
while (period && !filter) {
*period = '\0';
strcat(wildname, ".*");
if (SUCCESS == zend_hash_find(&stream_filters_hash, wildname, strlen(wildname), (void**)&factory)) {