|  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: 2020-04-07 14:26 UTC
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: luerfeng2012 at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: Strings related
PHP Version: 5.4Git-2014-09-19 (Git) OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: luerfeng2012 at gmail dot com
New email:
PHP Version: OS:


 [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:
 [2020-04-07 14:26 UTC]
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2020-04-07 14:26 UTC]
Duplicate of bug #64948.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 20:01:31 2024 UTC