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

Bug #14075 Validate::uri() rejects valid tag: URIs
Submitted: 2008-06-05 03:18 UTC
From: evanprodromou Assigned: davidc
Status: Closed Package: Validate (version 0.8.1)
PHP Version: 5.2.3 OS: Linux
Roadmaps: (Not assigned)    

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:
Solve the problem : 46 - 10 = ?

 [2008-06-05 03:18 UTC] evanprodromou (Evan Prodromou)
Description: ------------ tag: is a registered URI scheme ( defined in RFC 4151 (, see also Valid tag: URIs are rejected by Validate::uri(), probably because they don't have quite the same format as e.g. http: URLs. It may be worthwhile to break up the URI validation by URI scheme, so that different kinds of URIs can be validated in different ways. Test script: --------------- <?php # Validate.php must be installed and in PHP path require_once('Validate.php'); if (Validate::uri(',2006:test:1')) { echo "Success!\n"; } else { echo "Failure!\n"; } Expected result: ---------------- Success! Actual result: -------------- Failure!


 [2008-10-22 18:26 UTC] davidc (David Coallier)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.
 [2008-10-23 21:43 UTC] doconnor (Daniel O'Connor) + function rfc4151($url){ + echo "rfc4141: url '$url'\n"; + $datevalid = false; + if (preg_match( Probably shouldn't echo