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

Bug #16381 string format validation fails for VALIDATE_NAME.VALIDATE_XXX
Submitted: 2009-06-26 16:19 UTC
From: tthiers Assigned: amir
Status: Closed Package: Validate (version 0.8.2)
PHP Version: 5.2.9 OS: windows
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 : 15 - 15 = ?

 
 [2009-06-26 16:19 UTC] tthiers (Thierry Thiers)
Description: ------------ Using combination of VALIDATE_NAME.VALIDATE_ANY_OTHER_FORMAT cause string validation to fail. This occurs because VALIDATE_NAME format ends with a dash (-) character which cause an undesired regexp pattern (like '-any_char) when it is concatenated with another format. Test script: --------------- Validate::string("PEAR 1234", array("format" => VALIDATE_NAME.VALIDATE_NUM)); Expected result: ---------------- This code should return TRUE Actual result: -------------- This code returns FALSE.

Comments

 [2009-06-27 00:00 UTC] amir (Amir Mohammad Saied)
-Status: Open +Status: Closed -Assigned To: +Assigned To: amir
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.