|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
41 - 35 = ?
Subscribe to this entry?

 [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: Mon Oct 18 01:03:39 2021 UTC