|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 26 22:03:57 2022 UTC