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
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:
MUST BE VALID
Solve the problem:
49 - 21 = ?
Subscribe to this entry?

 
 [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 19 11:01:28 2024 UTC