|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68049 filter_var echo wrong result for a url
Submitted: 2014-09-19 04:50 UTC Modified: -
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: luerfeng2012 at gmail dot com Assigned:
Status: Open Package: Strings related
PHP Version: 5.4Git-2014-09-19 (Git) OS: Windows 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-09-19 04:50 UTC] luerfeng2012 at gmail dot com

Test script:

	echo 'valid url';
	echo 'invalid url';

Expected result:
valid url

Actual result:
invalid url


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-21 08:34 UTC] florian at margaine dot com

This seems to be wanted behavior, see

However, browsers *do* accepts underscores in the host.
 [2014-09-21 08:42 UTC] florian at margaine dot com
Another note: according to the rfc 3986, this is not a valid URL.

 [2014-09-21 08:58 UTC] florian at margaine dot com
Also related:
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 06:01:23 2020 UTC