Bug #68844 [NEW]: filter_var wrong result for url
From: pavel at 6min dot de Date: Fri, 16 Jan 2015 13:26:32 +0000 Subject: Bug #68844 [NEW]: filter_var wrong result for url Groups: php.bugs Request: Send a blank email to php-bugs+get-189987@lists.php.net to get a copy of this message
From: pavel at 6min dot de Operating system: CentOS PHP version: 5.4.36 Package: URL related Bug Type: Bug Bug description:filter_var wrong result for url Description: ------------ I used the function filter_var to filter for valid urls but that is the problem i end up. The version of php I used is 5.4.35 ( was not possible to choose it from the list above ) Test script: --------------- $url='https://www.dropbox.com/s/t16e9t2dyv2snl2/Vind%20gratis%20artikelen%20en%20de%20beste%20koopjes%20op%20nl.pepper.com.pdf'; $valid = filter_var($url,FILTER_VALIDATE_URL) !== false; var_dump($valid); Expected result: ---------------- true Actual result: -------------- false -- Edit bug report at https://bugs.php.net/bug.php?id=68844&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68844&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68844&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68844&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68844&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68844&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68844&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68844&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68844&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68844&r=support Expected behavior: https://bugs.php.net/fix.php?id=68844&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68844&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68844&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68844&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68844&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68844&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68844&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68844&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68844&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68844&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68844&r=mysqlcfg
Thread (3 messages)
| « previous | php.bugs (#189987) | next » |
|---|