|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75907 list documentation does not reflect changes of PHP 7.1
Submitted: 2018-02-02 13:19 UTC Modified: 2018-07-03 14:18 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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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
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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-02 14:22 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: Arrays related
 [2018-02-02 14:22 UTC]
Indeed, so far this info is only available in the migration guide:
 [2018-07-03 14:18 UTC]
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] <>
[2] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 21 12:03:33 2021 UTC