php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75166 Opcache ignores streams' opened_path and stat
Submitted: 2017-09-07 04:16 UTC Modified: -
From: dinumarina at gmail dot com Assigned:
Status: Open Package: opcache
PHP Version: 5.6.31 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dinumarina at gmail dot com
New email:
PHP Version: OS:

 

 [2017-09-07 04:16 UTC] dinumarina at gmail dot com
Description:
------------
We use a stream wrapper for includes to perform some actions upon source access / compilation. The stream sets opened_path to a valid source path in the system, and stats accordingly, including inode / mod date.

Expected behavior:
opcache should honor the wrapper's reported unchanged path and stat and not recompile the file. 
This is the actual behavior with PHP 5.3 + APC, PHP * + XDebug for instance.

Current behavior:
opcache always recompiles streamwrapped files.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 03:01:29 2024 UTC