|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69200 opcache_compile_file
Submitted: 2015-03-07 16:16 UTC Modified: 2015-03-15 04:22 UTC
Avg. Score:4.3 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: stephane dot vannerom at gmail dot com Assigned:
Status: No Feedback Package: opcache
PHP Version: 5.6.6 OS: Windows 8
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:
46 - 20 = ?
Subscribe to this entry?

 [2015-03-07 16:16 UTC] stephane dot vannerom at gmail dot com
opcache_compile_file fails

OPCache module is 'up and running' when displaying phpinfo();

Test script:
echo (opcache_reset()) ? '<br/>cache reset complete<br />' : '<br />unable to reset cache<br />' ;
echo (opcache_compile_file(__FILE__)) ? __FILE__ . ': compiled successfully<br />' : __FILE__ . ': compile failed<br />';

Expected result:
I expected the file was compiled

Actual result:
cache reset complete

Notice: Zend OPcache seems to be disabled, can't compile file in C:\wamp\www\optisimpleorgdev\public\admin\osc.php on line 29
C:\wamp\www\optisimpleorgdev\public\admin\osc.php: compile failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-07 17:13 UTC]
set opcache.enable=1 in your php.ini
 [2015-03-07 17:13 UTC]
-Status: Open +Status: Feedback
 [2015-03-15 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2016-05-10 20:52 UTC] ian at subnet192 dot com
Hi, I'm having the same issue on a PHP 7.0 installation.

When I'm trying to run opcache_compile_file(), I get a message saying :
PHP Notice:  Zend OPcache seems to be disabled, can't compile file in compile.php on line 8

I'm running the compile.php script using : php -c hunt.ini.tmp compile.php

The hunt.ini.tmp has the following settings :


Running opcache_get_configuration() gives me good results : 

array(28) {

But running opcache_get_status() gives me :
array(3) {
  string(63) "/my/path/hunt_opcache"

Not sure what is going on exactly.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 23 00:03:38 2021 UTC