Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105995 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 74791 invoked from network); 20 Jun 2019 13:11:05 -0000 Received: from unknown (HELO mo4-p00-ob.smtp.rzone.de) (85.215.255.20) by pb1.pair.com with SMTP; 20 Jun 2019 13:11:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1561026357; s=strato-dkim-0002; d=kelunik.com; h=Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=EzTbpgwvHAU/zSpLoefYlkBHBgeU665SCRZdxQZYnys=; b=owR07iGj3mw5Dk8v5myFapKJEkAcS8ztF8QPsU62C1g+zgVrS+s1EAsmc3If73/zJx CNjHCQnbYTC1WHiIa8q/Z9UG3If+Ed/ucQRWl6COKLMvs0HTZ9oa5089KFX8UvXFM1p7 0rvyLKpGxhhP0nKnlktf/Gdt5Xl9QnXegklpIGsWcNl9G6UaHWZlSeIXGCzDY/Jr15mo 5Sw2mUN9wYGvBEOmM+LiMpZkIMt9dOFtQpyslkyL6qwnSankHvB5cn4nyH2xPAb21HjO 7E8Ppmkpv5bODQt5yiQVFJd1tEE9nhJkXFmuUIRD8Gaq3Q1fzxSFnkEBcuQOPuZpBw1K 63YQ== X-RZG-AUTH: ":IWkkfkWkbvHsXQGmRYmUo9mlsGbEv0XHBzMIJSS+jKTzde5mDb8AaBIcZiAlcA==" X-RZG-CLASS-ID: mo00 Received: from mail-pl1-f179.google.com by smtp.strato.de (RZmta 44.24 AUTH) with ESMTPSA id j0bfa1v5KAPvAiI (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Thu, 20 Jun 2019 12:25:57 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id k8so1222012plt.3 for ; Thu, 20 Jun 2019 03:25:57 -0700 (PDT) X-Gm-Message-State: APjAAAUo9W47+DLRyiclg2dpkTp2G+z6yrY2v+2cmzc7g19ldvFQbYR/ 4gRo5OODZKSPwSxohP3us+2bTnbLm6g9Qn7eAfg= X-Google-Smtp-Source: APXvYqy9HqKqkhvqpzkUBkQGo8KVgMB5AD7TxMAz6CyCPjL98+dVQkBWMf/6pQyTblcFNMJm7Faccolfdy757CRyKEw= X-Received: by 2002:a17:902:968b:: with SMTP id n11mr83376814plp.120.1561026356536; Thu, 20 Jun 2019 03:25:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 20 Jun 2019 12:25:45 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Nikita Popov Cc: Wes , PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV][RFC] Normalize array's "auto-increment" value on copy on write From: me@kelunik.com (Niklas Keller) Hi Wes, I don't think it'll work the way you described. I think we have to make the auto-increment value be entirely dependent on the values in the array for it to work. Consider the following example combining your initial assertion in the RFC with an example further down: ``` : > > On Thu, Jun 20, 2019 at 1:45 AM Wes wrote: > > > Hello internals, I just published another RFC > > > > https://wiki.php.net/rfc/normalize-array-auto-increment-on-copy-on-write > > > > Please keep in mind that my intentions are good and I am proposing things > > in the interest of everybody. Also, I am aware that I might be wrong. If I > > am, please illustrate the reason without barking at me. Thanks <3 > > > > Looks reasonable to me. > > Nikita