|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70966 [FR] It seems that example#1 is wrong
Submitted: 2015-11-24 18:26 UTC Modified: 2016-07-27 01:57 UTC
From: daniel dot duclos2 at gmail dot com Assigned: pierrick (profile)
Status: Closed Package: Translation problem
PHP Version: 5.5.30 OS: Windows 10
Private report: No CVE-ID: None
 [2015-11-24 18:26 UTC] daniel dot duclos2 at gmail dot com
From manual page:

Il semble que l'exemple#1 soit faux en ce qui concerne les deux derniers exemples : le paramètre "lenght" est utilisé comme s'il signifiait "end" avec la même syntaxe que "start"

It seems that example#1 is wrong (at least in French version) for the 2 last examples : parameter 'lenght" is used as it meant "end" with the same syntax as "start"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-16 00:01 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2015-12-16 00:01 UTC]
It seems to me that the example is correct, and the behavior of
substr_replace() with regard to the `length` parameter is properly
explained in the English documentation:

| If it is negative, it represents the number of characters from
| the end of string at which to stop replacing.

Maybe the French translation of this sentence is misleading?
 [2015-12-27 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2015-12-29 20:03 UTC] daniel dot duclos2 at gmail dot com
Sorry : I could not reopen the issue ; my password is not working

I confirm that it is a translation issue.

The translator endavored to find a good translation to this complex sentence, but the result is not understandable, at my mind. I suggest to come back to a translation close to the English version, which could be : "il représentera le nombre de caractères à partir de la fin de la chaîne où arrêter le remplacement"
 [2015-12-29 21:16 UTC]
-Summary: It seems that example#1 is wrong +Summary: [FR] It seems that example#1 is wrong -Status: No Feedback +Status: Re-Opened -Package: Documentation problem +Package: Translation problem
 [2015-12-29 21:16 UTC]
Okay. Reopening as translation problem.
 [2016-01-15 11:50 UTC]
-Assigned To: cmb +Assigned To:
 [2016-01-15 11:50 UTC]
Oops – forgotten to unassign myself.
 [2016-07-27 01:57 UTC]
Automatic comment from SVN on behalf of pierrick
Log: Fixed bug #70966
 [2016-07-27 01:57 UTC]
-Status: Re-Opened +Status: Closed -Assigned To: +Assigned To: pierrick
 [2016-07-27 01:57 UTC]
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:48 UTC]
Automatic comment on behalf of pierrick
Log: Fixed bug #70966
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 09:03:13 2021 UTC