Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.2.0

Request #18909 Adding "not" filter to search
Submitted: 2011-10-14 14:38 UTC
From: jerryzz Assigned: beni
Status: Closed Package: Net_LDAP2 (version 2.0.11)
PHP Version: 5.1.3 OS: Linux
Roadmaps: 2.1.0    
Subscription  


 [2011-10-14 14:38 UTC] jerryzz (Jerry)
Description: ------------ Filter "not" is missing in Filter.php Expected result: ---------------- Add this, Filter.php, line 199 case 'not': $leaf_filter->_filter = '(!(' . $attr_name . '=' . $value . '))'; break;

Comments

 [2011-10-27 18:40 UTC] beni (Benedikt Hallinger)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: beni
Bug is not applicable; negation is done throug Net_LDAP2_Filter2::combine() after creating the positive defined filter. However, your change request lead me to the conclusion, that such a negation feature would be handy. I implemented it in SVN. Now you can make a simple negative filter by saying for example "not equal".
 [2011-10-27 18:40 UTC] beni (Benedikt Hallinger)
-Status: Assigned +Status: Closed -Roadmap Versions: +Roadmap Versions: 2.1.0
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2011-11-24 19:44 UTC] jerryzz (Jerry)
Thanks