Bug #69465 [NEW]: FILTER_VALIDATE_URL does not see urls with underscores as valid URLs.

From: Date: Wed, 15 Apr 2015 19:37:39 +0000
Subject: Bug #69465 [NEW]: FILTER_VALIDATE_URL does not see urls with underscores as valid URLs.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192113@lists.php.net to get a copy of this message
From: neclimdul at gmail dot com Operating system: Ubuntu PHP version: 5.6.7 Package: Filter related Bug Type: Bug Bug description:FILTER_VALIDATE_URL does not see urls with underscores as valid URLs. Description: ------------ yaml.decode_timestamp is said to 'Controls the decoding of both implicit and explict "tag:yaml.org,2002:timestamp" scalars.' This seems to be covered by the resolution rules(http://yaml.org/spec/1.1/current.html#id866224) However this settings decodes all scalars which is not recommended. (http://yaml.org/spec/1.1/current.html#id866262). Nodes have “!” non-specific tag shouldn't be resolved. Quoted tags are documented as being treated the same way Test script: --------------- <?php ini_set('yaml.decode_timestamp', 1); var_dump(yaml_parse(' date1: 2015-05-15 date2: "2015-05-15" date3: ! 2015-05-15 ')); Expected result: ---------------- array(3) { ["date"]=> int(1431666000) ["date2"]=> string(10) "2015-05-15" ["date3"]=> string(10) "2015-05-15" } Actual result: -------------- array(3) { ["date"]=> int(1431666000) ["date2"]=> int(1431666000) ["date3"]=> int(1431666000) } -- Edit bug report at https://bugs.php.net/bug.php?id=69465&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69465&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69465&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69465&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69465&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69465&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69465&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69465&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69465&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69465&r=support Expected behavior: https://bugs.php.net/fix.php?id=69465&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69465&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69465&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69465&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69465&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69465&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69465&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69465&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69465&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69465&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69465&r=mysqlcfg

« previous php.bugs (#192113) next »