FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16381&edit=1

ID: 16381
Updated by: [email protected]
Reported By: thierry dot thiers at i-creativ dot com
Summary: string format validation fails for
VALIDATE_NAME.VALIDATE_XXX
-Status: Open
+Status: Closed
Type: Bug
Package: Validate
Operating System: windows
Package Version: 0.8.2
PHP Version: 5.2.9
-Assigned To:
+Assigned To: amir
Roadmap Versions:
New Comment:

-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.




Previous Comments:
------------------------------------------------------------------------

[2009-06-26 12:19:57] tthiers

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.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 26, '09 at 6:02p
activeJun 26, '09 at 6:02p
posts1
users1
websitepear.php.net

1 user in discussion

Amirsaied: 1 post

People

Translate

site design / logo © 2023 Grokbase