Doc #66305 [Opn->Csd]: [FR] FILTER_VALIDATE_URL documentation error + french translation

From: Date: Thu, 23 Jan 2014 17:27:01 +0000
Subject: Doc #66305 [Opn->Csd]: [FR] FILTER_VALIDATE_URL documentation error + french translation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10876@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66305&edit=1 ID: 66305 Updated by: yannick@php.net Reported by: karibou at ribouka dot com Summary: [FR] FILTER_VALIDATE_URL documentation error + french translation -Status: Open +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: Irrelevant -Assigned To: +Assigned To: yannick Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2014-01-23 17:26:34] yannick@php.net Automatic comment from SVN on behalf of yannick Revision: http://svn.php.net/viewvc/?view=revision&revision=332723 Log: Fix bug #66305 ------------------------------------------------------------------------ [2013-12-17 09:55:47] karibou at ribouka dot com 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 this bug report at https://bugs.php.net/bug.php?id=66305&edit=1

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