Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77627 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68871 invoked from network); 25 Sep 2014 11:16:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Sep 2014 11:16:06 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.172 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.172 mail-vc0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:45225] helo=mail-vc0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 81/80-00789-379F3245 for ; Thu, 25 Sep 2014 07:16:05 -0400 Received: by mail-vc0-f172.google.com with SMTP id hy10so7926541vcb.3 for ; Thu, 25 Sep 2014 04:16:00 -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=ynM3TLMkRfQW5da7LY52cQQKmYO2nztyfTp2QMglSLk=; b=AKEhIKB3/f+JVMH/DGY7ACvMwoHpW8lAs+szgQDX2XajRX5sqM022nZ53bZ6ikh6Nx VIs1VWSMRu0J0tvbkKsFKI20kl0645soZFkUT2+XQmQfPzZW8PAakpfkET+H1ccg1a5/ kCE4JOpz5ciFCfmYl/F08auPz2UIqsXAJGnDkuIfumBppmSB3U7whDoGQq0X3qoRkxcd cFqBeOam5bm7aLVO/WnduDCeKqghu5hOqxOpTI/+EctZx5loQLJbtUEuy0ZRTZFQTqBM dtOQ3I9a+JaSOjpY1UW/yh/1ykuj5d9xb5ZfSxblqKKRNds87C6nyZV2XjQ4RapuwByH WRPQ== X-Gm-Message-State: ALoCoQkn5otkfZYMvqcgsp7EojUNA50V7fBPHvApy6H4BUJJuszOIo/56cTjJl2w4SH68/cI/1xZHOdEEmnY+Gu+cftRcXk5gugkEy8rgDWSBkxJvPWwbJyl/emwreLroH61SRP1l1DVCupoO8sgODKSTw1QZnr+pg== MIME-Version: 1.0 X-Received: by 10.220.202.202 with SMTP id ff10mr10407991vcb.15.1411643760017; Thu, 25 Sep 2014 04:16:00 -0700 (PDT) Received: by 10.52.158.197 with HTTP; Thu, 25 Sep 2014 04:15:59 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Sep 2014 15:15:59 +0400 Message-ID: To: Leigh Cc: PHP Internals Content-Type: multipart/alternative; boundary=089e0158a898dd98200503e1ec44 Subject: Re: [PHP-DEV] [VOTE] Fix list() behavior inconsistency From: dmitry@zend.com (Dmitry Stogov) --089e0158a898dd98200503e1ec44 Content-Type: text/plain; charset=UTF-8 disabling string handling would allow make operation simpler and would improve regular access to array elements. We won't need to check for (opline->extended_value & ZEND_FETCH_ADD_LOCK) in FETCH_DIM_R handler. However, it's going to be very small improvement, and I don't care a lot. :) enabling string handling would require complication of ZEND_FETCH_DIM_TMP_VAR handler (for strings support). It's going to make list() handling a bit slower, but not significantly. my choice +1 for disabling. Thank. Dmitry. On Thu, Sep 25, 2014 at 12:00 PM, Leigh wrote: > On 25 September 2014 08:42, Dmitry Stogov wrote: > > Hi, > > > > The vote is opened at > > https://wiki.php.net/rfc/fix_list_behavior_inconsistency > > > > Thanks. Dmitry. > > Since in the "should people be allowed to vote" thread, I said I think > people should explain their votes, here is my explanation :) > > I am voting disable. +1 for consistency, but I think we already have a > pretty rich suite of functions for working with strings that do not > work with arrays, and vice versa. I think enabling list() to work on > strings sets a precedent that more/all array handling mechanisms > should be made to work with strings, and I'm not sure that's something > we want. > > We've defined list as not working with strings in the manual, lets > stick to our own definition. > --089e0158a898dd98200503e1ec44--