Bug #69200 [Com]: opcache_compile_file
Edit report at https://bugs.php.net/bug.php?id=69200&edit=1
ID: 69200
Comment by: ian at subnet192 dot com
Reported by: stephane dot vannerom at gmail dot com
Summary: opcache_compile_file
Status: No Feedback
Type: Bug
Package: opcache
Operating System: Windows 8
PHP Version: 5.6.6
Block user comment: N
Private report: N
New Comment:
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 :
opcache.enable=1
opcache.file_cache_only=1
opcache.enable_cli=1
Running opcache_get_configuration() gives me good results :
array(28) {
["opcache.enable"]=>
bool(true)
["opcache.enable_cli"]=>
bool(true)
["opcache.use_cwd"]=>
bool(true)
...
But running opcache_get_status() gives me :
array(3) {
["opcache_enabled"]=>
bool(false)
["file_cache"]=>
string(63) "/my/path/hunt_opcache"
["file_cache_only"]=>
bool(true)
}
Not sure what is going on exactly.
Previous Comments:
------------------------------------------------------------------------
[2015-03-15 04:22:19] 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.
------------------------------------------------------------------------
[2015-03-07 17:13:36] laruence@php.net
set opcache.enable=1 in your php.ini
------------------------------------------------------------------------
[2015-03-07 16:16:49] stephane dot vannerom at gmail dot com
Description:
------------
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69200&edit=1
Thread (5 messages)