Re: [RFC] Fix list() behavior inconsistency

From: Date: Wed, 17 Sep 2014 12:23:58 +0000
Subject: Re: [RFC] Fix list() behavior inconsistency
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-77284@lists.php.net to get a copy of this message
Both decisions make sense. I'm indifferent which one to make. Just not to keep the undocumented inconsistency :) Thanks. Dmitry, On Wed, Sep 17, 2014 at 3:00 PM, Derick Rethans <derick@php.net> wrote: > 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 >

« previous php.internals (#77284) next »