Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77646 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37248 invoked from network); 26 Sep 2014 07:08:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2014 07:08:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.41 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.218.41 mail-oi0-f41.google.com Received: from [209.85.218.41] ([209.85.218.41:54813] helo=mail-oi0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/A1-27411-60115245 for ; Fri, 26 Sep 2014 03:08:55 -0400 Received: by mail-oi0-f41.google.com with SMTP id u20so9383720oif.0 for ; Fri, 26 Sep 2014 00:08:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=1YjDmKbz6yiPpuXdftTfqHUaQy8L50T2yfm+GCadNEQ=; b=mpkcu58l0HjGnZV9HgsnWWwsL3SygegFc+GSnaiDSPxmOnT3a51Eun4bi4YBVq1Jik 5PXNoczmh2n+YIu83P6D7GwLLszOw3E/ujYCJwzxG+CshemAv4ZlOU1A6vtJ2/xQKcJp fEpjqytfSazgCzvag3mO/x8RVT2Z7fBrodC9i+fMJlhzw2VmTZsQN1vJuXG/Rt2bzFqf fACP7D3ukYsvxPhbAxxI0kLsBGVl8rUUcsYG7sZQazqcrveN/DQ5qS54l7k//IwgXk/W 3GayP8a2M/CSAmXLG4hDMdxkd1No5pk9bePNNXo167qHd6gu/sVNRE1Z4uISwFchcYKU boZA== MIME-Version: 1.0 X-Received: by 10.60.174.197 with SMTP id bu5mr19368691oec.3.1411715331989; Fri, 26 Sep 2014 00:08:51 -0700 (PDT) Received: by 10.76.25.101 with HTTP; Fri, 26 Sep 2014 00:08:51 -0700 (PDT) In-Reply-To: <54250F32.4080807@sugarcrm.com> References: <54248E27.1040206@sugarcrm.com> <54250F32.4080807@sugarcrm.com> Date: Fri, 26 Sep 2014 08:08:51 +0100 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [VOTE] Fix list() behavior inconsistency From: leight@gmail.com (Leigh) On 26 September 2014 08:01, Stas Malyshev wrote: > > It's as odd as [] working with strings but -> not. Those are different > things, so they work differently. Sorry, this was kind of my point, I probably just phrased it badly. The array_* "question" was meant to be rhetorical. My points are: * Strings are _not_ treated as arrays of bytes everywhere. * If we intend to give strings more array-like support after this RFC (like foreach($string as $char), making array_* work with strings), then I support the list() change. * Otherwise not