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

Bug #11229 Compare-Rule with operator "!=" broken
Submitted: 2007-06-05 12:30 UTC
From: berdir Assigned: avb
Status: Closed Package: HTML_QuickForm (version 3.2.9)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 41 - 9 = ?

 
 [2007-06-05 12:30 UTC] berdir (Sascha Grossenbacher)
Description: ------------ The compare-operator "!=" is no longer working with version 3.2.9, you need to use "!==". This is better anyway, but it results in broken applications, if they use !=. Test script: --------------- $form->addRule(array('field1', 'field2'), 'fields have to be different', 'compare', '!='); //same with 'client' Expected result: ---------------- The same values are not allowed Actual result: -------------- only the same values are allowe,d because default operator "===" is used.

Comments

 [2007-06-05 18:38 UTC] avb (Alexey Borzov)
This bug has been fixed in CVS. 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. Fixed: now operator '!=' is automatically converted to '!=='. Thanks for report.