Doc #66305 [NEW]: FILTER_VALIDATE_URL documentation error + french translation

From: Date: Tue, 17 Dec 2013 09:55:48 +0000
Subject: Doc #66305 [NEW]: FILTER_VALIDATE_URL documentation error + french translation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10713@lists.php.net to get a copy of this message
From: karibou at ribouka dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:FILTER_VALIDATE_URL documentation error + french translation Description: ------------ --- From manual page: http://www.php.net/filter.filters.validate --- platform: PHP 5.4.4 (Debian Wheezy) There is a documentation problem with the FILTER_VALIDATE_URL. In english and in french (i can't verify in other langages) In french : "Attention, une URL valide ne doit pas spécifier le protocole HTTP http://, aussi, des validations ultérieures seront requises pour déterminer si l'URL utilise un protocole attendu" In english : "Beware a valid URL may not specify the HTTP protocol http:// so further validation may be required to determine the URL uses an expected protocol, e.g. ssh:// or mailto:." "may not" = "ne pourrait pas" But the doc (in french AND english) is not right and tell a wrong expected result. Url MUST use protocol. See Doc Bug #40675 but this part bug is not corrected. Test script: --------------- var_dump(filter_var('example.com', FILTER_VALIDATE_URL); // return false var_dump(filter_var('http://example.com', FILTER_VALIDATE_URL); // return the url Expected result: ---------------- Change the documentation -- Edit bug report at https://bugs.php.net/bug.php?id=66305&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66305&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66305&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66305&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66305&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66305&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66305&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66305&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66305&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66305&r=support Expected behavior: https://bugs.php.net/fix.php?id=66305&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66305&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66305&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66305&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66305&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66305&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66305&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66305&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66305&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66305&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66305&r=mysqlcfg

« previous php.doc.bugs (#10713) next »