Bug #79603 [NEW]: RTD collision with opcache
From: nikic
Operating system:
PHP version: 7.4.6
Package: Scripting Engine problem
Bug Type: Bug
Bug description:RTD collision with opcache
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 bug report at https://bugs.php.net/bug.php?id=79603&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79603&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79603&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79603&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79603&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79603&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79603&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79603&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79603&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79603&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79603&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79603&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79603&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79603&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79603&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79603&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79603&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79603&r=mysqlcfg
Thread (5 messages)
- nikic@php.net