|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
16 - 4 = ?
Subscribe to this entry?

 [2017-09-07 04:16 UTC] dinumarina at gmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 16:03:36 2021 UTC