Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21354 invoked from network); 26 Sep 2014 03:55:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2014 03:55:24 -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.217.169 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.217.169 mail-lb0-f169.google.com Received: from [209.85.217.169] ([209.85.217.169:33980] helo=mail-lb0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/80-14641-7A3E4245 for ; Thu, 25 Sep 2014 23:55:20 -0400 Received: by mail-lb0-f169.google.com with SMTP id u10so359070lbd.14 for ; Thu, 25 Sep 2014 20:55:17 -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=Q3eP5YUnCPF4IPoldm+UCvKyBeTtXoyoowk71/62zZs=; b=U8YrosLKr/vNwuCX5WEN/TZbUxbZ5W59SiZxaFRyDaOtJPBx8yoeN8kjgwQKXq68xk YLEihCzETt9Ytd0RALcv6AO5GTcXbknhhIoYo0yEAHUd68Mxrp8ZMsSLD5sSEpBpMpko hiHOM2vfL4tsp9Jj547iItvnrMUfc4mFF0rtEamqMkj5Sgk+dJVd1BmC14zIGE21CL0u szMQayDFxz5yIA+hy9/zl3UfCubfAT8YkQr0BWNmVpZdgCogOswAzvb8gMb3knRvE+be pG2WUePEQPqTe4mMQDGL7XxNq+msqKJAMp0mk0lCZYgZxG0XUKFVia/a3n14i9juoyge A+Sg== X-Gm-Message-State: ALoCoQkJGkj9zFqNdVY4IhbLFweul5rODM17gTakDhSRQwU/Yt1Z+Q72CJi6ModQ/YZhSILqpPhvRQbbjcyo6aJgEG3FKENpXuwT+QtnmpePviJrG00dOp+8oBqBBChoMFZeMGEX4/tILGAqS40uLjmg/l9ifUoUEw== X-Received: by 10.112.198.163 with SMTP id jd3mr16708626lbc.72.1411703717118; Thu, 25 Sep 2014 20:55:17 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by mx.google.com with ESMTPSA id bc1sm1410094lab.40.2014.09.25.20.55.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Sep 2014 20:55:15 -0700 (PDT) Received: by mail-lb0-f170.google.com with SMTP id n15so2079772lbi.29 for ; Thu, 25 Sep 2014 20:55:14 -0700 (PDT) X-Received: by 10.112.198.74 with SMTP id ja10mr16748491lbc.14.1411703714715; Thu, 25 Sep 2014 20:55:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.187.234 with HTTP; Thu, 25 Sep 2014 20:54:54 -0700 (PDT) In-Reply-To: References: <54248E27.1040206@sugarcrm.com> Date: Fri, 26 Sep 2014 11:54:54 +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) 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? 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/