Bug #19364 [Opn->Csd]: Net_LDAP2_Filter parse accepts invalid filter

From: Date: Thu, 12 Apr 2012 08:05:41 +0000
Subject: Bug #19364 [Opn->Csd]: Net_LDAP2_Filter parse accepts invalid filter
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8554@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19364&edit=1 ID: 19364 Updated by: beni@php.net Reported By: bob at mroczka dot com Summary: Net_LDAP2_Filter parse accepts invalid filter -Status: Open +Status: Closed Type: Bug Package: Net_LDAP2 Operating System: ubuntu 11.10 Package Version: 2.0.12 PHP Version: 5.4.0 -Assigned To: +Assigned To: beni Roadmap Versions: New Comment: -Status: Open +Status: Closed -Assigned To: +Assigned To: beni 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. Previous Comments: ------------------------------------------------------------------------ [2012-04-12 08:19:34] beni I added your test case to the unit test scripts. ------------------------------------------------------------------------ [2012-04-01 23:18:38] rmroczk Description: ------------ a filter with trailing extra parens parses successfully Test script: --------------- 110 $parsed4 = Net_LDAP2_Filter::parse('(|(invalid-because-too-many-close-parens=x)(a=c)))'); 111 $this->assertInstanceOf('PEAR_Error', $parsed4); Expected result: ---------------- expect filter to return a pear_error object Actual result: -------------- phpunit Net_LDAP2_FilterTest.php PHPUnit 3.6.10 by Sebastian Bergmann. .FF... Time: 0 seconds, Memory: 3.75Mb There were 2 failures: 1) Net_LDAP2_FilterTest::testParse Failed asserting that Net_LDAP2_Filter Object (...) is an instance of class "PEAR_Error". /home/xxx/php/Net_LDAP2-2.0.12/tests/Net_LDAP2_FilterTest.php:111 ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19364&edit=1

« previous php.pear.bugs (#8554) next »