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

 [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-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 08:01:23 2020 UTC