Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107773 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38185 invoked from network); 6 Nov 2019 15:12:58 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 6 Nov 2019 15:12:58 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 97E8A2D207A for ; Wed, 6 Nov 2019 05:02:34 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8560 212.227.0.0/16 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Wed, 6 Nov 2019 05:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1573045352; bh=i8PMFKQeU5VBCUQ3zkGjuYg6Aw0K4QIhi8dkX32S9HE=; h=X-UI-Sender-Class:To:From:Subject:Date; b=KQTJl7vXokVoFmrjgW4Kilqco1lSimFQ9FvDDG00ZfI4kRestN6Pn6I8KpQ3MY8nu QjCJIELXkK2v8/dJPJGHKzvdDVF5VOjnzkhxRB1iOWJzF57TjZ5jRB7V/LKiq7Y6Eb Y3rBYKbowAvvfxg2sSWeuU0zOXIaisH3u76GogXY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.2.144] ([84.179.245.97]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MSt8Q-1iMG7d3iv8-00UHEs for ; Wed, 06 Nov 2019 14:02:31 +0100 To: PHP internals Message-ID: Date: Wed, 6 Nov 2019 14:02:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:AecOZJyX6v4ghCJ5wilLHITJERW9Mb6f4yES7xxAl2ZWjnX1VZh Zqb3UNxkOj+IZEVSSpEbNHuOcTkh65MfTum0BgmSusDpi7985qoOq7MQcmZGjHhLl5X4UvS dsJ/PnKUfgBYFRgisS5T5WM8wMhBiYw3mJ2/jpa2T7VSaiCT8TnNHcmLefFDbNWO89tK/Rk mAnXxjblhwh5mQzp4xMbQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:u2dg3NvrcN8=:kTLHR47sHnstR7p5RI7Imz /sq+Auu8BgQFLCmI6txy4CEkAexpZZcxfaKiEy4pjDDPOTJSS1tUmRLY2iziu6U1qKAKEYBPZ t6bwEle5P77Ex9k0o8EoShn3vbAmG7Ar/u16LIejpWHJVnIR6D9O2hL8ILPiLlqXYAx/MJjx8 Rk4QF3d1ZKH0/NgVdcq8wgsrund8ljgnW20ANxXK7wOEWEk1SqUhXXSqpR6GfaDZAIXfP7l6J 1h2RBxof1HAERh9eJIzb9A0YoTDOzhB8u5/mt0DbCmahTPWJ2uNlkpBm9/1hPZRklQbY0RL69 th6r82oW/0d213sbw4jRSpzrcHkF1w6DvZb/YVVD5IayyiQWSrrNOVPd4I4P8NpGpivY9tDzZ b7g8VV/VxtUEo9jy4tYHQsT47JD9sgrdtZklWHDGToyWH9C4c7D2vLuf7676EvvklLUr6a7xx ljL3zAGt9Hh6XOWCV2FmIzaG5yAAU+JgUp1tQ/9HAPJQ/Fpy+w3uRldBK8GAiAv3p3ne+rX0s /z/QWpaxgi8nPnR7Rku6gv/JqrVL7mb8euB5IAG5/I7hY3/bAdX3H0xSp9vaKZqtQEtzo3yuX NRIswgaCiX7IH61jx2DGmbn29HsANI8xGSiYRuXHr8lsHkb+Bm8MaJpmxUzBMFczwEnSxr2Mg WXM7WbFOquLOovLNvhpNqzjGrRqbPPeAoopwOnIpdFWKBMc5dyVomfsrAWr0vTU+vyvPqW/56 FSaiw7Hs1tuU5QzJ8npYFs/66gplhe+ESwFullI0YcJEIzozcxkQAir6CI5cOTbbD75K4lIbX j0F4FDXHUshiMAgfuGFIQ32UvERgt3INpNjhc/otKyjrLecgY11xdF/ZvdgDAhcdUSZjHozNZ 3jqt4kQOy6W8NJm6cFMHK/++yT8uhHqtWXQ/i9uHvceZn/z7xzSey4KjiK9OkoDkvPIWQKl+H GLEm5sWHiRfQv3f92pjMTwPasOJs8epWTy0EnIUPsDJ8rE2rza4YJkmMybyaNMKw1k7yQiaFr wyIO8oj+5okqoJbhdhGn8k1rXDvEsuhnNfbKu1hhTE0uwj731bYrU8MpkXS4bIMgzPayVfmC7 qQ2F/4oXCKEn+EquPhuG36jsq4C1xQ+klJWy4Gtcu1V344RKI9a8ARph/XZGnm+1uyXNC7Bht nXNfR1Rl0qW9kJCZ2tZW7YgVPEW+Qnk7TT+iHbYqHBu8T6QIfzpTxaqQncv4qQKyTNiL1iNdU fWtkuKXyp+bQ5V1zs5xqap1sxublVumWOYI3RuWCw8DLMLHVR27LuoXcSOog= X-Envelope-From: Subject: file_cache is prone to some configuration changes From: cmbecker69@gmx.de ("Christoph M. Becker") Hi internals, while having had a closer look at , I learned that OPcache's file_cache is prone to some configuration changes, which may cause PHP segfaults (and maybe other malfunctions). For instance, if Xdebug is enabled while a file is compiled, but later disabled when executing that file, the process is segfaulting because the cached file relies on user opcode handlers which are no longer available without Xdebug loaded. I'm presenting Xdebug as example because that likely caused the issues reported in that ticket, but basically any extension can call zend_set_user_opcode_handler() to install user opcode handlers, causing the same problems. It should be mentioned that, to my knowledge, shared memory caches are not affected by this (except for Windows), because re-attaching a differently configured php instance isn't possible at all. Anyhow, should we fix this (assuming a general fix would be possible), or would that be rather a documentation issue, based on the assumption that such configuration changes don't make sense in combination with OPcache at all (IOW, if such changes are done, users should reset OPcache)= . =2D- Christoph M. Becker