|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53017 Problem of using filter_var() on a specific link
Submitted: 2010-10-07 19:41 UTC Modified: 2010-10-08 04:59 UTC
From: rudeboiidevil2k7 at hotmail dot co dot uk Assigned:
Status: Duplicate Package: Filter related
PHP Version: 5.3.3 OS: Mac Snow Leopard
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
39 + 8 = ?
Subscribe to this entry?

 [2010-10-07 19:41 UTC] rudeboiidevil2k7 at hotmail dot co dot uk
There is a type of link that would always return false when checking if it is a valid link, a link such as:

So that type of link (provided above) will always return false.

Test script:
if(filter_var('', FILTER_VALIDATE_URL))
    echo 'valid';
    echo 'not valid';


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-07 19:43 UTC] rudeboiidevil2k7 at hotmail dot co dot uk
-Operating System: Mac OS X +Operating System: Mac Snow Leopard
 [2010-10-07 19:43 UTC] rudeboiidevil2k7 at hotmail dot co dot uk
Detailed OS
 [2010-10-07 22:13 UTC]
-Status: Open +Status: Feedback
 [2010-10-07 22:13 UTC]
Hum? Is this echoing "invalid" for you? I get "valid", which is what's expected.
 [2010-10-08 04:59 UTC]
-Status: Feedback +Status: Duplicate
 [2010-10-08 04:59 UTC]
Snow Leopard is currently still shipping 5.3.2 as standard, which suffered from bug #51192. This is fixed in 5.3.3.

Marking duplicate; closing.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jan 19 14:03:17 2022 UTC