php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54912
Patch ext-filter-bug revision 2011-05-24 03:31 UTC by crrodriguez at opensuse dot org

Patch ext-filter-bug for Filter related Bug #54912

Patch version 2011-05-24 03:31 UTC

Return to Bug #54912 | Download this patch
Patch Revisions:

Developer: crrodriguez@opensuse.org

Index: ext/filter/logical_filters.c
===================================================================
--- ext/filter/logical_filters.c	(revisión: 311370)
+++ ext/filter/logical_filters.c	(copia de trabajo)
@@ -682,7 +682,7 @@
 		RETURN_VALIDATION_FAILED
 	}
 
-	if (flags & (FILTER_FLAG_IPV4 || FILTER_FLAG_IPV6)) {
+	if ((flags & FILTER_FLAG_IPV4) || (flags & FILTER_FLAG_IPV6)) {
 		/* Both formats are cool */
 	} else if ((flags & FILTER_FLAG_IPV4) && mode == FORMAT_IPV6) {
 		RETURN_VALIDATION_FAILED
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC