Added warning about making assumptions on the protocol with FILTER_VALIDATE_URL

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327158 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Drak 2012-08-17 19:46:54 +00:00
parent 6c09aea7ac
commit 8fcc7d5c81

View file

@ -105,7 +105,7 @@
<constant>FILTER_FLAG_PATH_REQUIRED</constant>,
<constant>FILTER_FLAG_QUERY_REQUIRED</constant>
</entry>
<entry>Validates value as URL (according to <link xlink:href="&url.rfc;2396">&url.rfc;2396</link>), optionally with required components. Note that the function will only find ASCII URLs to be valid; internationalized domain names (containing non-ASCII characters) will fail.</entry>
<entry>Validates value as URL (according to <link xlink:href="&url.rfc;2396">&url.rfc;2396</link>), optionally with required components. Beware a valid URL may not specify the HTTP protocol <parameter>http://</parameter> so further validation may be required to determine the URL uses an expected protocol, e.g. <parameter>ssh://</parameter> or <parameter>mailto:</parameter>. Note that the function will only find ASCII URLs to be valid; internationalized domain names (containing non-ASCII characters) will fail.</entry>
</row>
</tbody>
</tgroup>