Edit report at http://bugs.php.net/bug.php?id=53017&edit=1

 ID:                 53017
 Updated by:         cataphr...@php.net
 Reported by:        rudeboiidevil2k7 at hotmail dot co dot uk
 Summary:            Problem of using filter_var() on a specific link
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Filter related
 Operating System:   Mac Snow Leopard
 PHP Version:        5.3.3
 Block user comment: N

 New Comment:

Hum? Is this echoing "invalid" for you? I get "valid", which is what's
expected.


Previous Comments:
------------------------------------------------------------------------
[2010-10-07 19:43:56] rudeboiidevil2k7 at hotmail dot co dot uk

Detailed OS

------------------------------------------------------------------------
[2010-10-07 19:41:27] rudeboiidevil2k7 at hotmail dot co dot uk

Description:
------------
There is a type of link that would always return false when checking if
it is a valid link, a link such as:



http://img8.warez-bb.org/images/wbb_logo_v2.jpg



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

Test script:
---------------
if(filter_var('http://img8.warez-bb.org/images/wbb_logo_v2.jpg',
FILTER_VALIDATE_URL))

{

    echo 'valid';

}

else

{

    echo 'not valid';

}



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53017&edit=1

Reply via email to