Re: [RFC] Fix list() behavior inconsistency
| From: | Derick Rethans | Date: | Wed, 17 Sep 2014 11:00:39 +0000 |
| Subject: | Re: [RFC] Fix list() behavior inconsistency | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77283@lists.php.net to get a copy of this message | ||
On Thu, 11 Sep 2014, Dmitry Stogov wrote:
> Please take a look and make your opinion.
>
> https://wiki.php.net/rfc/fix_list_behavior_inconsistency
>
> This inconsistency might be interpreted like a bug, but fixing it might
> break existing PHP code (at least my attempt to fix it in documented way
> broke few phpt tests).
But at least your option "Enable string handling in all cases" makes
additional things work, instead of making things *no longer* work.
I realize that:
list($a,$b) = "aa";var_dump($a,$b);
Will now start returning something else than NULL, but I would almost
consider that a bug. I would definitely elect to vote for "Enable string
handling in all cases" as it IMO actually fixes something.
cheers,
Derick