Bug #51660 [Opn->Bgs]: FILTER_VAR returns FALSE on valid-Urls containing a minus sign
| From: | felipe@php.net | Date: | Sun, 25 Apr 2010 17:33:47 +0000 |
| Subject: | Bug #51660 [Opn->Bgs]: FILTER_VAR returns FALSE on valid-Urls containing a minus sign | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149873@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51660&edit=1
ID: 51660
Updated by: felipe@php.net
Reported by: cimodev at me dot com
Summary: FILTER_VAR returns FALSE on valid-Urls containing a
minus sign
-Status: Open
+Status: Bogus
Type: Bug
Package: Filter related
Operating System: Linux 2.6.25.20 (openSuse 11.0)
PHP Version: 5.3.2
New Comment:
It was already fixed. Thanks.
Previous Comments:
------------------------------------------------------------------------
[2010-04-25 11:36:41] cimodev at me dot com
Description:
------------
PHP 5.3.2 (cli)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
FILTER_VAR returns false on valid URL's such "http://www.sky-bizz.com".
Without minus-sign it will return the string as positive result.
In Bug-Search I found the hint, that it already would be fixed in
5.2.13.
It seems, that in 5.3.2 this bug was born again
Test script:
---------------
$url = "http://www.sky-bizz.com";
var_dump(filter_var($url, FILTER_VALIDATE_URL));
Expected result:
----------------
string "http://www.sky-bizz.com"
Actual result:
--------------
bool (false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51660&edit=1