Browse Source

Stop looking once we've found a matching filter.

PEAR_1_4DEV
Sara Golemon 23 years ago
parent
commit
495fd01ca4
  1. 2
      main/streams/filter.c

2
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)) {

Loading…
Cancel
Save