From 495fd01ca4747e03cb657222eb7bd1feaa89e6aa Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Tue, 28 Oct 2003 23:29:16 +0000 Subject: [PATCH] Stop looking once we've found a matching filter. --- main/streams/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.40.0