mirror of
https://github.com/php/php-src.git
synced 2024-12-11 10:54:47 +08:00
Stop looking once we've found a matching filter.
This commit is contained in:
parent
c9b49af990
commit
495fd01ca4
@ -238,7 +238,7 @@ PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, zval
|
|||||||
|
|
||||||
wildname = estrdup(filtername);
|
wildname = estrdup(filtername);
|
||||||
period = wildname + (period - filtername);
|
period = wildname + (period - filtername);
|
||||||
while (period) {
|
while (period && !filter) {
|
||||||
*period = '\0';
|
*period = '\0';
|
||||||
strcat(wildname, ".*");
|
strcat(wildname, ".*");
|
||||||
if (SUCCESS == zend_hash_find(&stream_filters_hash, wildname, strlen(wildname), (void**)&factory)) {
|
if (SUCCESS == zend_hash_find(&stream_filters_hash, wildname, strlen(wildname), (void**)&factory)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user