cvs: php-src /main/streams filter.c
| From: | Sara Golemon | Date: | Tue, 28 Oct 2003 23:29:17 +0000 |
| Subject: | cvs: php-src /main/streams filter.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-24342@lists.php.net to get a copy of this message | ||
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)) {