pollita         Tue Oct 28 18:29:17 2003 EDT

  Modified files:              
    /php-src/main/streams       filter.c 
  Log:
  Stop looking once we've found a matching filter.
  
Index: php-src/main/streams/filter.c
diff -u php-src/main/streams/filter.c:1.7 php-src/main/streams/filter.c:1.8
--- php-src/main/streams/filter.c:1.7   Tue Oct 28 16:52:59 2003
+++ php-src/main/streams/filter.c       Tue Oct 28 18:29:16 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: filter.c,v 1.7 2003/10/28 21:52:59 pollita Exp $ */
+/* $Id: filter.c,v 1.8 2003/10/28 23:29:16 pollita Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -238,7 +238,7 @@
 
                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)) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to