php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69731 [FR] array_splice() reference : "il sera transtypé en 1"
Submitted: 2015-05-29 14:34 UTC Modified: 2016-07-27 01:33 UTC
From: chealer at gmail dot com Assigned: pierrick (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chealer at gmail dot com
New email:
PHP Version: OS:

 

 [2015-05-29 14:34 UTC] chealer at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-splice
---
    Note: Si replacement n'est pas un tableau, il sera transtypé en 1 (i.e. (array) $parameter). Cela peut conduire en un résultat non prévu lors de l'utilisation d'un objet ou NULL comme paramètre replacement. 

is supposed to translate:

    Note: If replacement is not an array, it will be typecast to one (i.e. (array) $parameter). This may result in unexpected behavior when using an object or NULL replacement. 


"il sera transtypé en un" would be less puzzling, but a literal translation is not valid. I would suggest:
Si replacement n'est pas un tableau, il en deviendra un par transtypage (i.e. (array) $parameter).


By the way, "$parameter" should read "$replacement" (this also affects the source version).


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-29 15:57 UTC] cmb@php.net
-Summary: array_splice() French reference : "il sera transtypé en 1" +Summary: [FR] array_splice() reference : "il sera transtypé en 1"
 [2016-07-27 01:32 UTC] pierrick@php.net
Automatic comment from SVN on behalf of pierrick
Revision: http://svn.php.net/viewvc/?view=revision&revision=339733
Log: Fixed bug #69731
 [2016-07-27 01:33 UTC] pierrick@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pierrick
 [2020-12-30 12:48 UTC] nikic@php.net
Automatic comment on behalf of pierrick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=ab4c9df3a739bddd2727c5d671f862226c2e5e5b
Log: Fixed bug #69731
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC