php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75907 Symmetric array destructuring not properly documented
Submitted: 2018-02-02 13:19 UTC Modified: 2021-11-08 15:43 UTC
From: j dot teriete at interiete dot net Assigned:
Status: Verified Package: Arrays related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j dot teriete at interiete dot net
New email:
PHP Version: OS:

 

 [2018-02-02 13:19 UTC] j dot teriete at interiete dot net
Description:
------------
Since PHP 7.1 list() supports destructuring of arrays with non-integer or non-sequential keys. The documentation (english and german) is out of date, showing only the support of numerical arrays.

---
From manual page: http://www.php.net/function.list
---



Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-02 14:22 UTC] cmb@php.net
-Status: Open +Status: Verified -Package: Documentation problem +Package: Arrays related
 [2018-02-02 14:22 UTC] cmb@php.net
Indeed, so far this info is only available in the migration guide:
<http://de2.php.net/manual/en/migration71.new-features.php#migration71.new-features.support-for-keys-in-list>
 [2018-07-03 14:18 UTC] cmb@php.net
The 7.1 list() enhancements are documented now[1], but the
“Symmetric array destructuring”[2] is still undocumented.  Since
the latter is somewhat related, I'm leaving this ticket open to
track that.

[1] <http://svn.php.net/viewvc?view=revision&revision=345209>
[2] <http://de2.php.net/manual/en/migration71.new-features.php#migration71.new-features.symmetric-array-destructuring>
 [2021-11-08 15:43 UTC] cmb@php.net
-Summary: list documentation does not reflect changes of PHP 7.1 +Summary: Symmetric array destructuring not properly documented
 [2021-11-08 15:43 UTC] cmb@php.net
The following pull request has been associated:

Patch Name: Array destructuring
On GitHub:  https://github.com/php/doc-en/pull/796
Patch:      https://github.com/php/doc-en/pull/796.patch
 [2023-05-03 10:12 UTC] godstreas at gmail dot com
Health Workout Blog are sharing latest news portal about fitness, exercise, diet, weight loss, food, health, nutrition, treatment, addiction etc. More info to visit:(https://healthworkoutblog.com)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC