Bug 63744 - references in list()
| From: | David Walker | Date: | Wed, 28 Dec 2016 00:47:41 +0000 |
| Subject: | Bug 63744 - references in list() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-97477@lists.php.net to get a copy of this message | ||
Hi all,
I stumbled upon this bug report (read: feature request) today and took a
swing at it thinking it couldn't be that overly complex. But then again it
was requested way back in the PHP4 era, so I figured there has to be some
reason why it hasn't been done before. Be it complex in cases I'm not
thinking of, or, has been deemed something the language doesn't want to
support.
I was able to, pretty quickly, get a bunch of test cases seemingly
working. Both list-assign from an array container, and that of an object
implementing arrayaccess.
I'd imagine a change of this kind would probably warrant an RFC, but before
writing it out, and fleshing out the change I just wanted to check if there
were any reasons behind it not being done.
--
Dave