|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51621 FILTER_VALIDATE_URL return true on invalid URLs
Submitted: 2010-04-21 12:56 UTC Modified: 2010-04-27 14:16 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: terq at wikidot dot com Assigned:
Status: Not a bug Package: Filter related
PHP Version: 5.2.13 OS: MAC OS 10.6.3
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: terq at wikidot dot com
New email:
PHP Version: OS:


 [2010-04-21 12:56 UTC] terq at wikidot dot com
terq-2 workspace$ php -v
PHP 5.2.13 (cli) (built: Mar 16 2010 11:04:48) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
terq-2 workspace$ php
var_dump(filter_var("", FILTER_VALIDATE_URL));
string(53) ""

Test script:
var_dump(filter_var("", FILTER_VALIDATE_URL));

Expected result:

Actual result:
string(53) ""


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-27 13:33 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-04-27 13:33 UTC]
It was already fixed.
 [2010-04-27 13:46 UTC] terq at wikidot dot com
Where is bug fix for this?
In which PHP version is it fixed ?
 [2010-04-27 14:15 UTC]
-Status: Closed +Status: Bogus
 [2010-04-27 14:15 UTC]
I've tested on PHP 5.2.14-dev. But looks fixed on 5.2.13.

 [2010-04-27 14:16 UTC]
-Assigned To: felipe +Assigned To:
 [2010-04-27 14:16 UTC]
I've tested on PHP 5.2.14-dev. But looks fixed on 5.2.13.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 06:01:30 2024 UTC