ID:          49197
 Updated by:  il...@php.net
 Reported By: matt dot farina at gmail dot com
-Status:      Open
+Status:      Bogus
 Bug Type:    Filter related
 PHP Version: 5.2.10
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.


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

[2009-08-08 14:32:15] matt dot farina at gmail dot com

Description:
------------
FILTER_VALIDATE_URL doesn't actually validate a url. It passes the url

through parse_url (which according to the documentation is not meant to

validate a url). When tested against a test set this can be seen.

Instead of this method PHP should use a regex or some other method to 
actually validate it. See
http://api.drupal.org/api/function/valid_url/6 
for an example that is to RFC 3986.

I would hope for PHP 6 we can have it look for a valid IRL (with 
international characters) as well.



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


-- 
Edit this bug report at http://bugs.php.net/?id=49197&edit=1

Reply via email to