From:             
Operating system: All
PHP version:      Irrelevant
Package:          Filter related
Bug Type:         Bug
Bug description:FILTER_VALIDATE_URL should not fail URL's that use IDN

Description:
------------
If an URL uses IDN it should be considered valid.



The test script outputs three blank lines. It should output the URL's.



Examples from http://mathiasbynens.be/demo/url-regex



Test script:
---------------
<?php

echo filter_var('http://✪df.ws/123', FILTER_VALIDATE_URL);

echo "\n";

echo filter_var('http://⌘.ws/', FILTER_VALIDATE_URL);

echo "\n";

echo filter_var('http://➡.ws/䨹', FILTER_VALIDATE_URL);

echo "\n";





Expected result:
----------------
http://✪df.ws/123

http://⌘.ws/

http://⌘.ws/http://➡.ws/䨹





Actual result:
--------------
\n

\n

\n

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53474&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53474&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53474&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53474&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53474&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53474&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53474&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53474&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53474&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53474&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53474&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53474&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53474&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53474&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53474&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53474&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53474&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53474&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53474&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53474&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53474&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53474&r=mysqlcfg

Reply via email to