Home » Validate » Validate » Bug #4845
uri method always returns true
Details
| Submitted | 2005-07-16 17:20 UTC |
|---|---|
| From | mail at jordibetting dot nl |
| Assigned | toggg |
| Status | Closed |
| Package | Validate |
| PHP Version | 5_1 CVS-2005-07-16 |
| OS | WindowsXP - Service Pack 1 |
| Roadmaps | (Not assigned) |
Comments
[2005-07-16 17:20 UTC] mail at jordibetting dot nl
Description:
------------
The uri method does not work, it allways returns TRUE . The script which I used to test, is inserted in the next formfield.
I have tried a lot, but doesn't work.
I run the following software:
- Apache 2.0.54
- PHP 5.1.0b3
- MySQL 5 beta
and the version of the PEAR validation class is 0.5.0
Reproduce code:
---------------
<?php
require_once 'Validate.php';
$url="not @ goodurl123";
if(Validate::uri($url)) {
print('nice url');
} else {
print('bad url');
}
?>
Expected result:
----------------
On a Bad url, the method shoud return false
Actual result:
--------------
The method allways returns true