| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 Patchesext-filter-bug (last revision 2011-05-24 03:31 UTC by crrodriguez at opensuse dot org)Pull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2011-05-25 00:24 UTC] felipe@php.net
  [2011-05-25 00:24 UTC] felipe@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: felipe
  [2011-05-25 00:24 UTC] felipe@php.net
  [2011-05-25 00:34 UTC] felipe@php.net
  [2012-04-18 09:50 UTC] laruence@php.net
  [2012-07-24 23:41 UTC] rasmus@php.net
  [2013-11-17 09:38 UTC] laruence@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 12:00:01 2025 UTC | 
Description: ------------ Hi: There is some buggy/supicious code: ./ext/filter/logical_filters.c:685:32: warning: use of logical || with constant operand; switch to bitwise | or remove constant [-Wconstant-logical-operand] if (flags & (FILTER_FLAG_IPV4 || FILTER_FLAG_IPV6)) { ^ ~~~~~~~~~~~~~~~~ Test script: --------------- Attached is a patch to clear the problem separating it in two operations. Expected result: ---------------- No warning Actual result: -------------- ./ext/filter/logical_filters.c:685:32: warning: use of logical || with constant operand; switch to bitwise | or remove constant [-Wconstant-logical-operand]