PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Validate » Validate » Bug #4845

uri method always returns true

Details

Submitted2005-07-16 17:20 UTC
Frommail at jordibetting dot nl
Assignedtoggg
StatusClosed
PackageValidate
PHP Version5_1 CVS-2005-07-16
OSWindowsXP - 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