Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102625 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76339 invoked from network); 6 Jul 2018 15:21:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2018 15:21:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.19 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.19 mout.gmx.net Received: from [212.227.15.19] ([212.227.15.19:44159] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/7C-55607-8E88F3B5 for ; Fri, 06 Jul 2018 11:21:16 -0400 Received: from [192.168.2.101] ([79.222.41.233]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MGjL7-1fO2PE28XZ-00DUVd; Fri, 06 Jul 2018 17:21:09 +0200 To: Nikita Popov Cc: PHP internals References: Message-ID: Date: Fri, 6 Jul 2018 17:21:09 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:/TDpJJarxm+WhapmQWom2xvydQgB87SeidD6DdkipXKt41Jeh3t seGSrQtTlP1z5QvJY9nXYtILEwTsob/GJaqURDLPnXJwAK265uVeE19az4oi3dPNTfILGtu 4WBzlq8ZqTZ4X1NrNseI/V2c7e4Yt34QfIAXaYQj/efx/dQvZ/+F+V5yFkkfI5S1X/zPeO8 mJFWMpALrLHfW8xIhb2lw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ge6ZZ50u+AQ=:Fog4P4G5xligbV0ENZkAZT 9bs/vC6qKNP8rOSKc0cdpHsNbJOYI2OSlAuMnmuw+u0cb7KrszAhiFOdRyhbIYo5eSMU+dJJP VbdzNbGt/LW81lxRARTbz1O4jxchMq1DerQuYXtmHX/KsF9f1P+mTpbD1fTwBtrgQs05cVzdw nzRsp3tk3y4gdU/kG6Jh9YkIORaJROAgmrWpFQS5Ns4Io+j46l4p5q4mMVfKwRSHOox5L6FWM /kdMZE+M5C7eGm3Rh+hDQBjVqYIqJHF98KseLOQCc2BsSRGqlsztjcJsm1Lqth4tVurYrvJAx UrAqSZUrhEc9BHBHHPi8fpxU57f8lh84VhP3zPfZi1n3b8H93T2pdmgyyYd+wHOyCLal24Rfb b3UpOtRDeMr8x7HUKjBHWKoBnXQ0NDVOFu4edAM1kIgCCnQXhI8dtW98i2ReSIrqJ7u52Y3D5 CnKofSPa0QuOD1kkGoK0ePiMDOngwJ3qbLTD9R4DXcyDtybdPX69ZL/6G2hXzinVIiPexbgFU C2DCIVIdinFUGL11cQS4mxmT1MpftwWWhoXs3/05SOwaR0ApOY2NAdnxzHRW+Nz9HKhiBo3XH +bH9GUnIXJufRA/YMs7V56zgMhwhWIxmAdkcNLcTKE+jIDQ5Fvcx+kvxT/vXNinY7tu0r1NiK sGnQLhP6P5dsB6x0V51M2cBp6lNll7wKgj8qTpf8iEYF57/KE7Jta7lkXdYRm75xUSmjaRC21 IFYS4DnkVfWywbZ6F6PJYhikwP6eJkw5SAxGolIWb0L+20z+AlJqz4Rnss56ZO0cBtBg/5O8v /93el2W Subject: Re: [PHP-DEV] Z_CACHE_SLOT changed meaning in PHP 7.3? From: cmbecker69@gmx.de ("Christoph M. Becker") On 06.07.2018 at 15:55, Nikita Popov wrote: > On Fri, Jul 6, 2018 at 3:38 PM, Christoph M. Becker > wrote: > >> 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. >> >> [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. Thanks! However, the fact that the cache slot is now preferably stored on the opline (extended_value) is an issue for PECL/uopz. For instance, running the following script with uopz enabled -- Christoph M. Becker