php.net |  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.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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>
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 23:01:25 2019 UTC