|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-25 19:33 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2010-04-25 19:33 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 19:00:01 2025 UTC |
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)