Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77641 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21964 invoked from network); 26 Sep 2014 03:55:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2014 03:55:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.50 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.50 mail-la0-f50.google.com Received: from [209.85.215.50] ([209.85.215.50:60169] helo=mail-la0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/A0-14641-2C3E4245 for ; Thu, 25 Sep 2014 23:55:47 -0400 Received: by mail-la0-f50.google.com with SMTP id el20so2110459lab.37 for ; Thu, 25 Sep 2014 20:55:43 -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:from:date :message-id:subject:to:cc:content-type; bh=bePS6uxhYNDCT5/ARbezilzGTIgYg5AmvUnOA8XvS/Y=; b=RmwLlAxLGvyAcFD5oTOVqfQvoGuDzOA7QaVlVTkGk9gfH09fO5q04AUVFwIjAArelN S42Da2qnzUjOHdBdvNt8XbXWshF4phcrHfgeX3JR0NAxeF13i7O6MbMJKA+AKgPTBgoj W5ZL+ouMAQUo8fbwyWdIfMkOYeMRpSdbx4yjEoV4OVdp2N1vsrk6fkidbCSzU+csmvQu rQ6ogvB2C0zkcsXWrSqlNBdGYN2fWVW4XCkhk2RtJU1+3unEPRvxvSXRqb4YUATqEvNI lHyz6eFKtM1pGWA0WzCqWVKQt1Dct0LWy7lsqZt74gplO92lJSmB1BIdxsuFb3Wzahus CGbQ== X-Gm-Message-State: ALoCoQmdTkrfF+HM/IU/RPyLQaDyh8lxpe142JJkpqM4RX+Qzy5mlXTazPo68neV6DuknPr6L8SCiRnTcxJliTS3mJlsnMrOHwuAdMRQMd3Ga67dQ54nBfMDa7TSl1vomT9nqRybN8H0Nwh46weczIALEkgL/OLcHQ== X-Received: by 10.152.9.132 with SMTP id z4mr17742775laa.8.1411703743852; Thu, 25 Sep 2014 20:55:43 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by mx.google.com with ESMTPSA id j3sm1427975lah.0.2014.09.25.20.55.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Sep 2014 20:55:42 -0700 (PDT) Received: by mail-lb0-f176.google.com with SMTP id w7so8805322lbi.21 for ; Thu, 25 Sep 2014 20:55:42 -0700 (PDT) X-Received: by 10.112.150.194 with SMTP id uk2mr242139lbb.97.1411703742230; Thu, 25 Sep 2014 20:55:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.187.234 with HTTP; Thu, 25 Sep 2014 20:55:22 -0700 (PDT) In-Reply-To: References: <54248E27.1040206@sugarcrm.com> Date: Fri, 26 Sep 2014 11:55:22 +0800 Message-ID: To: Dmitry Stogov Cc: Stas Malyshev , Nikita Popov , Leigh , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Fix list() behavior inconsistency From: laruence@php.net (Xinchen Hui) 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/