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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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: Tue Apr 16 13:01:30 2024 UTC