php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66305 [FR] FILTER_VALIDATE_URL documentation error + french translation
Submitted: 2013-12-17 09:55 UTC Modified: 2014-01-23 17:27 UTC
From: karibou at ribouka dot com Assigned: yannick (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2013-12-17 09:55 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-23 05:33 UTC] bjori@php.net
-Package: Documentation problem +Package: Translation problem
 [2014-01-23 16:53 UTC] yannick@php.net
-Summary: FILTER_VALIDATE_URL documentation error + french translation +Summary: [FR] FILTER_VALIDATE_URL documentation error + french translation
 [2014-01-23 17:26 UTC] 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
 [2014-01-23 17:27 UTC] yannick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: yannick
 [2014-01-23 17:27 UTC] yannick@php.net
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.


 [2020-12-30 12:49 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=95006b2267c7e5109215d276ddda894cd35bcba8
Log: Fix bug #66305
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 23:01:29 2024 UTC