Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70642 invoked from network); 6 Jul 2018 13:55:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2018 13:55:13 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.177 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.223.177 mail-io0-f177.google.com Received: from [209.85.223.177] ([209.85.223.177:41431] helo=mail-io0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/9B-55607-EB47F3B5 for ; Fri, 06 Jul 2018 09:55:12 -0400 Received: by mail-io0-f177.google.com with SMTP id q9-v6so10918561ioj.8 for ; Fri, 06 Jul 2018 06:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4JK3r6FT4bpdD3js3oyxgfn5vJ2wgJFnGld7RWYsD0w=; b=cO8c9vOKKmzQXdxksHLoegskzPQ86IIf9Kh6hhM4EcUzTwMK2UsNK6H3Zv3HHJzx9Y +c/YObvO6JSDngN18IFSdx9TDaQY51Zc8UABM2alnYptevDluLJvrrS4jjjRwTiT5fb7 1bw7mSLpYwJoX1P+xO1198aNY66gzjDgZHUVvHDowMCn3mG9n2RB3tpVjtMykQ6Vb0QQ 59B321WXwPcL5lCs9jPMOkkzXlR5Q/N5JdxxdEhrkBZ9NXoMaNUXmHKVGEn1f1lBtWEG hKjUKDa1J5nnduP4eft+aIRmJN9eaXVakAPNpVisbOtzNVqHZ/V7NfofAwQxQZjyubDu m/DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4JK3r6FT4bpdD3js3oyxgfn5vJ2wgJFnGld7RWYsD0w=; b=B3vfgQ6vfrnUso3HfcHJNmV62IdUE3FEQokUUe4mOi3Wrmx6t08Ph1NI4xr+QtHfdT sMjusTdEg8lB1zG4lgG3/l21KgLmfAUrS1Ua4o5FrZdP/aKcK/+QkxcqGavi/nQW4woA s/yXVGkbvF/UfMqsfGchBfYWVBAMXI15M6ciujcjONnTL7Jrf7/98OnWJLT0rl6+vZHl BkQD0mmZ1CLC9K1DlAioHkKmPxcz6twPoMJ94YES7W9eZXjSxM19Hzf3p5ZWLgYAxujh lqFbCKwIyrPM7F4dhJSsdCpnbZpbVSjBNNAyAXVTLprnPT+v74QeY/Os72xe7RAoQ2fs 1VOw== X-Gm-Message-State: APt69E1VDJuTGaINSZnFwrmnPWal1rtOryLbFu6LwS21TX2fWfxo8kun JLygARlQnx8y9KA22gX+uQUg+DU85GJMiFzy4Y4= X-Google-Smtp-Source: AAOMgpduTncIYpHDwIkok8U8T0rdFfsIcZej6GT4rUQ5kiJkR4PxqNyekKUrCxFjQUNEFW2hxNpTjd7yvpmgBq0kQSI= X-Received: by 2002:a6b:254e:: with SMTP id l75-v6mr8122319iol.47.1530885307441; Fri, 06 Jul 2018 06:55:07 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:148a:0:0:0:0:0 with HTTP; Fri, 6 Jul 2018 06:55:06 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 Jul 2018 15:55:06 +0200 Message-ID: To: "Christoph M. Becker" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000f1511d0570550249" Subject: Re: [PHP-DEV] Z_CACHE_SLOT changed meaning in PHP 7.3? From: nikita.ppv@gmail.com (Nikita Popov) --000000000000f1511d0570550249 Content-Type: text/plain; charset="UTF-8" On Fri, Jul 6, 2018 at 3:38 PM, Christoph M. Becker wrote: > Hi! > > While trying to put together a patch to make PECL/uopz compatible with > PHP 7.3[1], I've stumbled upon commit ca035f2[2] and commit 1a63fa6[3]. > The former removed Z_CACHE_SLOT and related stuff, but the latter > reintroduced it with an apparently somewhat different meaning. If that > is correct, this change should be documented in UPGRADING.INTERNALS, and > perhaps it might even be better to rename the RECV_INIT cache and the > related macros, so any extension (probably few, if any) would already > fail at compile time. > > Thanks! > > [1] > [2] > ca035f26aa296acf553f289e2d459fd052367db2> > [3] > 1a63fa6ec9b0bacbb726e60c3c212e7d97b518c6> > The meaning of Z_CACHE_SLOT is still the same (cache slot stored in u2 of literal). The thing that changed is that we now prefer storing the cache slot directly on the opline, if possible. RECV_INIT is one of the cases where two independent cache slots are needed, one is stored on the opline and the other in Z_CACHE_SLOT of the initializer expression literal. Nikita --000000000000f1511d0570550249--