Bug #79603 [Opn]: RTD collision with opcache

From: Date: Mon, 18 May 2020 12:22:40 +0000
Subject: Bug #79603 [Opn]: RTD collision with opcache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227073@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79603&edit=1 ID: 79603 Updated by: nikic@php.net Reported by: nikic@php.net Summary: RTD collision with opcache Status: Open Type: Bug Package: Scripting Engine problem PHP Version: 7.4.6 Block user comment: N Private report: N New Comment: @nate: Based on the class involved, this is almost certainly bug #79548, which will be fixed in the next release. Previous Comments: ------------------------------------------------------------------------ [2020-05-18 12:20:08] nate at northern dot co This might be related to a segfault I'm experiencing. I have a repo with an example here: https://github.com/natewiebe13/php-preload-segfault ------------------------------------------------------------------------ [2020-05-15 13:16:23] nikic@php.net Description: ------------ It is possible to cause RTD key collisions through opcache. Here is a reproducer using file cache, though the same would also work through SHM: file1.php: <?php return function() {}; file2.php: <?php $file = 'file1.php'; var_dump(include $file); touch($file); var_dump(include $file); Then run file1.php first and file2.php second under -d opcache.file_cache_only=1. Actual result: -------------- Fatal error: Runtime definition key collision for function {closure}. This is a bug ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79603&edit=1

« previous php.bugs (#227073) next »