Edit report at https://bugs.php.net/bug.php?id=70357&edit=1
ID: 70357
User updated by: viktor at szepe dot net
Reported by: viktor at szepe dot net
Summary: OPcache status is unavailable in shutdown
Status: Open
Type: Bug
Package: opcache
Operating System: Debian 8.1
PHP Version: 7.0.0RC1
Block user comment: N
Private report: N
New Comment:
I also get right output on cli:
php -d opcache.enable_cli=1 1.php
Could it be that my php.ini has wrong settings?
Opcode Caching Up and Running
Optimization Enabled
Startup OK
Shared memory model mmap
Cache hits 107450
Cache misses 798
Used memory 36095392
Free memory 30976152
Wasted memory 37320
Interned Strings Used memory 4194272
Interned Strings Free memory 32
Cached scripts 784
Cached keys 1350
Max keys 3907
OOM restarts 0
Hash keys restarts 0
Manual restarts 0
opcache.blacklist_filename no value no value
opcache.consistency_checks 0 0
opcache.dups_fix Off Off
opcache.enable On On
opcache.enable_cli Off Off
opcache.enable_file_override Off Off
opcache.error_log no value no value
opcache.fast_shutdown 1 1
opcache.file_update_protection 2 2
opcache.force_restart_timeout 180 180
opcache.inherited_hack On On
opcache.interned_strings_buffer 4 4
opcache.log_verbosity_level 1 1
opcache.max_accelerated_files 2000 2000
opcache.max_file_size 0 0
opcache.max_wasted_percentage 5 5
opcache.memory_consumption 64 64
opcache.optimization_level 0xFFFFFFFF 0xFFFFFFFF
opcache.preferred_memory_model no value no value
opcache.protect_memory 0 0
opcache.restrict_api /home/wp/website/ /home/wp/website/
opcache.revalidate_freq 0 0
opcache.revalidate_path Off Off
opcache.save_comments 1 1
opcache.use_cwd On On
opcache.validate_timestamps On On
Previous Comments:
------------------------------------------------------------------------
[2015-08-26 06:13:58] laruence@php.net
I can not reproduce this....
$ sapi/cli/php /tmp/1.php
array (
'opcache_enabled' => true,
'cache_full' => false,
'restart_pending' => false,
'restart_in_progress' => false,
'memory_usage' =>
.........
thanks
------------------------------------------------------------------------
[2015-08-25 12:21:29] viktor at szepe dot net
https://github.com/zendtech/ZendOptimizerPlus/issues/217
------------------------------------------------------------------------
[2015-08-25 12:20:52] viktor at szepe dot net
Description:
------------
opcache_get_status() returns false in shutdown but not before it.
PHP 7.0.0-dev (cli) (built: Aug 17 2015 19:10:40)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
Test script:
---------------
function o1_opcache() {
var_export( opcache_get_status() ); // false
}
register_shutdown_function( 'o1_opcache' );
Expected result:
----------------
OPcache status
Actual result:
--------------
false
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70357&edit=1