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
 [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