Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73052 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11462 invoked from network); 10 Mar 2014 16:21:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2014 16:21:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.181 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.128.181 mail-ve0-f181.google.com Received: from [209.85.128.181] ([209.85.128.181:49986] helo=mail-ve0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/82-29996-D66ED135 for ; Mon, 10 Mar 2014 11:21:02 -0500 Received: by mail-ve0-f181.google.com with SMTP id oy12so7203476veb.40 for ; Mon, 10 Mar 2014 09:20:59 -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=ZyPOwTQdwWEtSrV1BWCQdnxxnPyZ7sgLcV/oxEKCCS0=; b=imG2qxxp51Js/M7+lFj6yuyq0SWj0lfyTBltR08lzXlBjofipatbD8YXaCis032R7L kj3RZajRtKfYG95KiR8KHnej5GhCMXmsyCCtm8EjutxeSEXJ3I9rWwk2AbN9OCOGklmS iwYognGBQFgt34kSmOgy9DKTyS0tv6cpwdbSf31bPjZ2ohYYPbonOP52H4oWuZD+hHr0 EkJ+SxRpZkkgn5oAIVS43Qie6r1GsfChKJggMUbIdfIuTNf/S8hXTtnsCoYl9JcbTywW IkWAxrP8dhnOD7KM2jlnl86xazjqUxjDnpB8hFuMeIf6rVfxW0wHFisXYXJEhkpeNXIp d3Rg== MIME-Version: 1.0 X-Received: by 10.59.9.38 with SMTP id dp6mr3091053ved.24.1394468459330; Mon, 10 Mar 2014 09:20:59 -0700 (PDT) Received: by 10.58.55.131 with HTTP; Mon, 10 Mar 2014 09:20:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Mar 2014 00:20:59 +0800 Message-ID: To: Etienne Kneuss Cc: Ferenc Kovacs , Julien Pauli , PHP Internals Content-Type: multipart/alternative; boundary=047d7bf0f4fc2b432d04f442fdcc Subject: Re: [PHP-DEV] [PR 614] ArrayObject and isset() / empty() behaviour From: tjerk.meesters@gmail.com (Tjerk Meesters) --047d7bf0f4fc2b432d04f442fdcc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Mar 10, 2014 at 9:58 PM, Tjerk Meesters w= rote: > Hi Etienne, > > > On Mon, Mar 10, 2014 at 9:26 PM, Etienne Kneuss wrote: > >> >> >> >> On Mon, Mar 10, 2014 at 1:43 PM, Ferenc Kovacs wrote: >> >>> >>> >>> >>> On Sat, Mar 8, 2014 at 10:56 AM, Tjerk Meesters < >>> tjerk.meesters@gmail.com> wrote: >>> >>>> On Sat, Mar 8, 2014 at 8:27 AM, Tjerk Meesters < >>>> tjerk.meesters@gmail.com>wrote: >>>> >>>> > Hi Etienne, >>>> > >>>> > Thanks for your input, much appreciated. >>>> > >>>> > I have moved the decision up the chain as you suggested; the results >>>> can >>>> > be found here: >>>> > >>>> > https://github.com/datibbaw/php-src/compare/php:PHP-5.4...bug66834a >>>> > >>>> >>>> > >>>> > It's suffering from a few memory leaks which can be fixed, >>>> > >>>> >>>> They are fixed now and a new PR has been opened: >>>> >>>> https://github.com/php/php-src/pull/616 >>>> >>>> >>> Hi Etienne, >>> >>> Are you fine with the changes in the PR? >>> >>> >> Two things: >> >> 1) Where is this planned to be merged? Is it really 5.4 ? As is the PR i= s >> no longer a simple bug fix and while I agree it should be changed that w= ay, >> it might introduce hard-to-track BC breaks. >> > > After a short discussion on IRC I'm moving the branch to target 5.6 > instead. > > >> 2) Seems to me that with this PR, part of the hack present in ArrayObjec= t >> in the has_dimension handler is no longer necessary, as it might be doin= g >> to value-check twice now. >> > > I'll start looking into this now. Thanks for the heads up :) > I've updated and cleaned up ext/spl; the most notable change is code removal according to a changed definition of zend_object_has_dimension_t: typedef int (*zend_object_has_dimension_t)(zval *object, zval *member TSRMLS_DC); PR: https://github.com/php/php-src/pull/621 Let me know if you see any other issues; I'm fine with reverting the typedef change if that could be an issue. > > >> >> >> Best, >> >> -- >>> Ferenc Kov=E1cs >>> @Tyr43l - http://tyrael.hu >>> >> >> >> >> -- >> Etienne Kneuss >> http://www.colder.ch >> > > > > -- > -- > Tjerk > --=20 -- Tjerk --047d7bf0f4fc2b432d04f442fdcc--