Bug #72395 [Opn]: list() regression
| From: | yunosh@php.net | Date: | Mon, 13 Jun 2016 12:08:53 +0000 |
| Subject: | Bug #72395 [Opn]: list() regression | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201565@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72395&edit=1
ID: 72395
Updated by: yunosh@php.net
Reported by: yunosh@php.net
Summary: list() regression
Status: Open
Type: Bug
Package: *General Issues
PHP Version: 7.1Git-2016-06-13 (Git)
Block user comment: N
Private report: N
New Comment:
What actually seems to happen, is that multiple empty elements in the list() statement don't
consume all array elements: https://3v4l.org/PrRGK
Previous Comments:
------------------------------------------------------------------------
[2016-06-13 11:49:44] yunosh@php.net
Description:
------------
list(,,$x,$y) doesn't return correct values for $x.
Test script:
---------------
https://3v4l.org/8bHTs
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72395&edit=1