Re: [RFC] Fix list() behavior inconsistency

From: Date: Sun, 14 Sep 2014 06:48:06 +0000
Subject: Re: [RFC] Fix list() behavior inconsistency
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-77172@lists.php.net to get a copy of this message
Hi! > 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). I think it makes sense to make list($a, $b, ...) = <something> to mean: $a = <something>[0] $b = <something>[1] ...etc... This is how it works in most cases, not sure why it doesn't work when <something> is a string literal, but I think it should work the same too. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/

« previous php.internals (#77172) next »