Doc #51616 [Opn->Csd]: FILTER_VALIDATE_URL undocumented.
| From: | preinheimer@php.net | Date: | Mon, 09 Aug 2010 21:46:13 +0000 |
| Subject: | Doc #51616 [Opn->Csd]: FILTER_VALIDATE_URL undocumented. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4818@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51616&edit=1
ID: 51616
Updated by: preinheimer@php.net
Reported by: bugs dot php at luden dot se
Summary: FILTER_VALIDATE_URL undocumented.
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: preinheimer
Block user comment: N
New Comment:
- I've included a link to the RFC in the documentation, it should go out
with the
next build.
- The filter will only validate ASCII based content, the new
internationalized
domains will fail, a note to that affect has also been added.
I received the RFC information from Ilia (thanks!)
Previous Comments:
------------------------------------------------------------------------
[2010-08-09 14:29:12] bugs dot php at luden dot se
If the filter validates against the (obsolete) RFC 2396,
then "Trigger-happy" Jani was wrong to mark bug #51050 as
bogus, because there are no productions in the syntax that
allows the characters <>"\ .
Also, RFC 2396 only mention URLs in passing. Is the filter
supposed to validate against a <URI-reference>?
------------------------------------------------------------------------
[2010-08-08 23:59:53] preinheimer@php.net
We follow: http://www.ietf.org/rfc/rfc2396.txt
Any differences between that spec and observed results should be filed
as bugs
against the feature.
I'll update the doc page once I remember how.
------------------------------------------------------------------------
[2010-07-28 03:03:37] preinheimer@php.net
This is an interesting question, I'll see who I can bug.
------------------------------------------------------------------------
[2010-06-29 11:19:54] pierrotevrard at gmail dot com
I notice that some flags like FILTER_FLAG_ALLOW_FRACTION or
FILTER_FLAG_PATH_REQUIRED are missing on this page...
Perhaps, it should be a good idea to say that there is more flags in the
predefined constants.
------------------------------------------------------------------------
[2010-04-20 18:49:49] bugs dot php at luden dot se
Description:
------------
Manual page:
<http://www.php.net/manual/en/filter.filters.validate.php>
The description for FILTER_VALIDATE_URL says "Validates value
as URL, optionally with required components.".
It is not documented which specification (such as RFC 3986) it
validates against. Without any way to determine what the filter
is supposed to do, it is entirely useless for anything but toy
programs.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51616&edit=1