php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #70599 register_tick_function() must invalidate opcache
Submitted: 2015-09-28 14:56 UTC Modified: 2017-06-23 15:38 UTC
From: pustovalov at teddyid dot com Assigned:
Status: Wont fix Package: opcache
PHP Version: 5.6.13 OS: Any
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: pustovalov at teddyid dot com
New email:
PHP Version: OS:

 

 [2015-09-28 14:56 UTC] pustovalov at teddyid dot com
Description:
------------
When registering tick handler while opcache is ON, only the touched file with register_tick_function() is recompiled, whilst all of the includes are still get from the cache and thus no calls for tick handler are inserted in between their functions.
 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-06-23 15:38 UTC] nikic@php.net
-Status: Open +Status: Wont fix
 [2017-06-23 15:38 UTC] nikic@php.net
This is related to declare(ticks) rather than register_tick_function().

As of PHP 7.0 declare(ticks) is strictly per-file and no longer leaks into subsequent compilation units. As such, this is no longer an issue.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 20:01:29 2024 UTC