From: walter dot tom+php at gmail dot com
Operating system:
PHP version: 5.2.1
PHP Bug Type: Feature/Change Request
Bug description: Add FILTER_VALIDATE_URI (replacing FILTER_VALIDATE_URL)?

Description:
------------
It appears as of the fix for #39898 that support for validating relative
URLs and URLs without a schema has been removed, without any option to
allow them.

I understand the reasoning is that the RFC specifies that a URL must
include a schema and a host, which is fair enough.

But it leaves the user with no simple way to validate domain names or
relative URLs.

So can I suggest that we add a FILTER_VALIDATE_URI type that would allow
domains, relative paths, or full URLs?


--
Edit bug report at [url]http://bugs.php.net/?id=40676&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40676&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40676&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40676&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40676&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40676&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40676&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40676&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40676&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40676&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40676&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40676&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40676&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40676&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40676&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40676&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40676&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40676&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40676&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40676&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40676&r=mysqlcfg[/url]