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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Mar 19 09:01:30 2024 UTC