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
