From: Sara Golemon Date: Tue, 28 Oct 2003 23:29:16 +0000 (+0000) Subject: Stop looking once we've found a matching filter. X-Git-Tag: RELEASE_2_0_0RC1~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=495fd01ca4747e03cb657222eb7bd1feaa89e6aa;p=php Stop looking once we've found a matching filter. --- diff --git a/main/streams/filter.c b/main/streams/filter.c index dd7c169dc6..76ff69093b 100644 --- a/main/streams/filter.c +++ b/main/streams/filter.c @@ -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)) {