Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77172 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43533 invoked from network); 14 Sep 2014 06:48:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2014 06:48:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 173.203.6.147 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 173.203.6.147 smtp147.ord.emailsrvr.com Linux 2.6 Received: from [173.203.6.147] ([173.203.6.147:41918] helo=smtp147.ord.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/50-39222-B2A35145 for ; Sun, 14 Sep 2014 02:48:11 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp11.relay.ord1a.emailsrvr.com (SMTP Server) with ESMTP id 05D973800A0; Sun, 14 Sep 2014 02:48:09 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp11.relay.ord1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 3B96838008F; Sun, 14 Sep 2014 02:48:07 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (c-73-53-124-150.hsd1.wa.comcast.net [73.53.124.150]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.10); Sun, 14 Sep 2014 06:48:08 GMT Message-ID: <54153A26.4080700@sugarcrm.com> Date: Sat, 13 Sep 2014 23:48:06 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 To: Dmitry Stogov , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] [RFC] Fix list() behavior inconsistency From: smalyshev@sugarcrm.com (Stas Malyshev) 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, ...) = to mean: $a = [0] $b = [1] ...etc... This is how it works in most cases, not sure why it doesn't work when is a string literal, but I think it should work the same too. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/