Doc #51616 [Com]: FILTER_VALIDATE_URL undocumented.
| From: | bugs dot php at luden dot se | Date: | Mon, 09 Aug 2010 12:29:12 +0000 |
| Subject: | Doc #51616 [Com]: FILTER_VALIDATE_URL undocumented. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4817@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
Comment by: bugs dot php at luden dot se
Reported by: bugs dot php at luden dot se
Summary: FILTER_VALIDATE_URL undocumented.
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
New Comment:
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>?
Previous Comments:
------------------------------------------------------------------------
[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