Bug #67908 [NEW]: list($a, $b) = $a broken.
| From: | arjen at react dot com | Date: | Tue, 26 Aug 2014 12:23:36 +0000 |
| Subject: | Bug #67908 [NEW]: list($a, $b) = $a broken. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-187279@lists.php.net to get a copy of this message | ||
From: arjen at react dot com
Operating system:
PHP version: master-Git-2014-08-26 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:list($a, $b) = $a broken.
Description:
------------
Probably in AST refactor.
Test script:
---------------
$a = array('a', 'b');
list($a, $b) = $a;
var_dump($a, $b);
Expected result:
----------------
string(1) "a"
string(1) "b"
Actual result:
--------------
string(1) "a"
string(0) ""
--
Edit bug report at https://bugs.php.net/bug.php?id=67908&edit=1
--