php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72395 list() regression
Submitted: 2016-06-13 11:49 UTC Modified: 2016-06-13 12:08 UTC
From: yunosh@php.net Assigned:
Status: Closed Package: *General Issues
PHP Version: 7.1Git-2016-06-13 (Git) 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yunosh@php.net
New email:
PHP Version: OS:

 

 [2016-06-13 11:49 UTC] yunosh@php.net
Description:
------------
list(,,$x,$y) doesn't return correct values for $x.

Test script:
---------------
https://3v4l.org/8bHTs


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-13 12:08 UTC] yunosh@php.net
What actually seems to happen, is that multiple empty elements in the list() statement don't consume all array elements: https://3v4l.org/PrRGK
 [2016-06-13 16:21 UTC] laruence@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dcd1c29f793e36c4595257644857809d2250ec49
Log: Fixed bug #72395 (list() regression)
 [2016-06-13 16:21 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2016-06-22 05:58 UTC] krakjoe@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dcd1c29f793e36c4595257644857809d2250ec49
Log: Fixed bug #72395 (list() regression)
 [2016-07-20 11:30 UTC] davey@php.net
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=dcd1c29f793e36c4595257644857809d2250ec49
Log: Fixed bug #72395 (list() regression)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 08:01:28 2024 UTC