Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77642 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30052 invoked from network); 26 Sep 2014 06:43:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2014 06:43:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.176 mail-vc0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:54492] helo=mail-vc0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/20-27411-1FA05245 for ; Fri, 26 Sep 2014 02:42:58 -0400 Received: by mail-vc0-f176.google.com with SMTP id la4so7175852vcb.35 for ; Thu, 25 Sep 2014 23:42:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=G2zen9UJNcCovxRbMxyzveruvq9bbB1O8AM2rqSIBL4=; b=JqWzubc9EXKNDZCVASSs/esWgQp1dFr/+Ft/NDSCVK3HChoBnz+VzU93M/AfrHP8Cr OgruqeUnnUvEexL+XbBZsKyR6aaSHQPtOzRG4PMXcydrVWvmLX1nHL7pt4vW/KvzV33f oMzkQOGe67gVXd14CtqD3sq9J1UoYGFP8vQpY4wE5sT1tMR5INvT57v6O4IAWA+E51sy yAwzkIWImL5m2OQeYzDwy03fTjlhmTCF05Uo5tSFT9PDOoTltJ++B18GYYgt92EhKuYH iYIF9uPAfH7GwXY8Oos8BhnWNxznQguWA7mflDd4Vo+7u0CC1PeyrBa+32iuXzjQ5XdL D9ig== X-Gm-Message-State: ALoCoQmoH8TMPdEpfrI8d2tVGazAFtsraD+NrSz6pcpEbb8Hx2YOhh7HpndxdQ+RhP6PKK3WN7qV6in7xNMP2e0hUvM0fmkvp52MGtdFiOGOjQKeS7Bdguq4Geo9UxkMBW/NBec5nHQgzE+IxJNm4sixkQ/KCcw/BQ== MIME-Version: 1.0 X-Received: by 10.220.202.202 with SMTP id ff10mr14468096vcb.15.1411713774905; Thu, 25 Sep 2014 23:42:54 -0700 (PDT) Received: by 10.52.158.197 with HTTP; Thu, 25 Sep 2014 23:42:54 -0700 (PDT) In-Reply-To: References: <54248E27.1040206@sugarcrm.com> Date: Fri, 26 Sep 2014 10:42:54 +0400 Message-ID: To: Xinchen Hui Cc: Stas Malyshev , Nikita Popov , Leigh , PHP Internals Content-Type: multipart/alternative; boundary=089e0158a89814048d0503f23a1d Subject: Re: [PHP-DEV] [VOTE] Fix list() behavior inconsistency From: dmitry@zend.com (Dmitry Stogov) --089e0158a89814048d0503f23a1d Content-Type: text/plain; charset=UTF-8 Simple majority between second and third options will win, Thanks. Dmitry. On Fri, Sep 26, 2014 at 7:55 AM, Xinchen Hui wrote: > On Fri, Sep 26, 2014 at 11:54 AM, Xinchen Hui wrote: > > Hey: > > > > > > > > On Fri, Sep 26, 2014 at 6:10 AM, Dmitry Stogov wrote: > >> I told it doesn't support strings and objects because it was designed > this > >> way. > >> I don't know who and when did it. > >> > >> It's not complicated to change it in any way. > >> The question which way is better, and it's the reason of voting. > >> > >> I would prefer not to extend list() to support strings, but in case > >> "enabling" would win, I'll make it. > >> > >> Thanks. Dmitry. > >> > > I am working what should we do if none side get 2/3 votes? > worrying > > > it seems it is going there :< > > > > thanks > >> > >> > >> > >> On Fri, Sep 26, 2014 at 1:50 AM, Stas Malyshev > >> wrote: > >> > >>> Hi! > >>> > >>> > It was on design. list() was intended to support plain arrays only. > >>> > >>> I'm not sure I'm getting this point - why list($a, $b) = $foo is not > >>> just translated as $a = $foo[0], $b = $foo[1], etc.? Is it hard to make > >>> it work that way? > >>> > >>> -- > >>> Stanislav Malyshev, Software Architect > >>> SugarCRM: http://www.sugarcrm.com/ > >>> > > > > > > > > -- > > Xinchen Hui > > @Laruence > > http://www.laruence.com/ > > > > -- > Xinchen Hui > @Laruence > http://www.laruence.com/ > --089e0158a89814048d0503f23a1d--