]> granicus.if.org Git - php/commitdiff
Stop looking once we've found a matching filter.
authorSara Golemon <pollita@php.net>
Tue, 28 Oct 2003 23:29:16 +0000 (23:29 +0000)
committerSara Golemon <pollita@php.net>
Tue, 28 Oct 2003 23:29:16 +0000 (23:29 +0000)
main/streams/filter.c

index dd7c169dc62a000629e3eb5d275152944467a223..76ff69093bff6cc57c4d71940d1bf672aa149d83 100644 (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)) {