Bug #79603 [Com]: RTD collision with opcache
Edit report at https://bugs.php.net/bug.php?id=79603&edit=1
ID: 79603
Comment by: nate at northern dot co
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:
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
Previous Comments:
------------------------------------------------------------------------
[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
Thread (5 messages)