php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79058 [ZH] document translation errors with array_merge
Submitted: 2020-01-03 09:54 UTC Modified: 2020-09-01 05:55 UTC
From: xzzll at msn dot cn Assigned: avenger (profile)
Status: Closed Package: Translation problem
PHP Version: 7.4.1 OS: null
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: xzzll at msn dot cn
New email:
PHP Version: OS:

 

 [2020-01-03 09:54 UTC] xzzll at msn dot cn
Description:
------------
---
From manual page: https://php.net/function.array-merge
---
https://www.php.net/manual/zh/function.array-merge.php

这个页面的描述 "如果只给了一个数组并且该数组是数字索引的,则键名会以连续方式重新索引。" 是错误的,实际上是提供任意数量的数组且为数字索引的键名会以连续方式重新索引

故这句话应该改为 "如果提供的数组存在以数字作为索引的内容,则这项内容的键名会以连续方式重新索引(注:文本[string]类型的数字也会被当作数字索引)"

PS: This error is to fix translation errors in Chinese documents. Please arrange a Chinese document management member for processing


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-03 10:07 UTC] cmb@php.net
-Summary: Chinese document translation errors +Summary: [ZH] document translation errors
 [2020-01-03 18:22 UTC] requinix@php.net
-Summary: [ZH] document translation errors +Summary: [ZH] document translation errors with array_merge
 [2020-09-01 05:55 UTC] avenger@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: avenger
 [2020-09-01 05:55 UTC] avenger@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 10:01:28 2024 UTC