summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-10-28 23:29:16 +0000
committerSara Golemon <pollita@php.net>2003-10-28 23:29:16 +0000
commit495fd01ca4747e03cb657222eb7bd1feaa89e6aa (patch)
tree91bfc433cb3adb3ddeb92548855af5377e1b3be1 /main
parentc9b49af9902095638cdbcea9eaa7bf623df15f37 (diff)
downloadphp-git-495fd01ca4747e03cb657222eb7bd1feaa89e6aa.tar.gz
Stop looking once we've found a matching filter.
Diffstat (limited to 'main')
-rw-r--r--main/streams/filter.c2
1 files changed, 1 insertions, 1 deletions
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)) {