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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC