File tree Expand file tree Collapse file tree 1 file changed +127
-1
lines changed
reference/opcache/functions Expand file tree Collapse file tree 1 file changed +127
-1
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<!-- $Revision$ -->
3- <!-- EN-Revision: 50b104c116f6b1798e36bf2f56b1fa023b8a7a92 Maintainer: satoruyoshida Status: ready -->
3+ <!-- EN-Revision: 23d4ebeeb5fb4ad24acb8a63f062f3406de3b2bc Maintainer: satoruyoshida Status: ready -->
44<!-- Credits: mumumu -->
55<refentry xml : id =" function.opcache-get-status" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
66 <refnamediv >
5353 </para >
5454 </refsect1 >
5555
56+ <refsect1 role =" changelog" >
57+ &reftitle.changelog;
58+ <informaltable >
59+ <tgroup cols =" 2" >
60+ <thead >
61+ <row >
62+ <entry >&Version; </entry >
63+ <entry >&Description; </entry >
64+ </row >
65+ </thead >
66+ <tbody >
67+ <row >
68+ <entry >PHP 8.3.0</entry >
69+ <entry >
70+ <code >opcache_get_status()['scripts'][n]['revalidate']</code > の値に、
71+ いつスクリプトの更新チェックを行うかの予定が Unix タイムスタンプの形で含まれるようになりました。
72+ いつチェックを行うかは、INI ディレクティブ
73+ <link linkend =" ini.opcache.revalidate-freq" >opcache.revalidate_freq</link >
74+ によって決まります。
75+ </entry >
76+ </row >
77+ </tbody >
78+ </tgroup >
79+ </informaltable >
80+ </refsect1 >
81+
82+ <refsect1 role =" examples" >
83+ &reftitle.examples;
84+ <example >
85+ <title ><function >opcache_get_status</function > の例</title >
86+ <programlisting role =" php" >
87+ <![CDATA[
88+ <?php
89+ var_dump(opcache_get_status());
90+ ?>
91+ ]]>
92+ </programlisting >
93+ &example.outputs.similar;
94+ <screen >
95+ <![CDATA[
96+ array(9) {
97+ 'opcache_enabled' =>
98+ bool(true)
99+ 'cache_full' =>
100+ bool(false)
101+ 'restart_pending' =>
102+ bool(false)
103+ 'restart_in_progress' =>
104+ bool(false)
105+ 'memory_usage' =>
106+ array(4) {
107+ 'used_memory' =>
108+ int(9167936)
109+ 'free_memory' =>
110+ int(125049792)
111+ 'wasted_memory' =>
112+ int(0)
113+ 'current_wasted_percentage' =>
114+ double(0)
115+ }
116+ 'interned_strings_usage' =>
117+ array(4) {
118+ 'buffer_size' =>
119+ int(8388608)
120+ 'used_memory' =>
121+ int(2593616)
122+ 'free_memory' =>
123+ int(5794992)
124+ 'number_of_strings' =>
125+ int(10358)
126+ }
127+ 'opcache_statistics' =>
128+ array(13) {
129+ 'num_cached_scripts' =>
130+ int(0)
131+ 'num_cached_keys' =>
132+ int(0)
133+ 'max_cached_keys' =>
134+ int(16229)
135+ 'hits' =>
136+ int(0)
137+ 'start_time' =>
138+ int(1733310010)
139+ 'last_restart_time' =>
140+ int(0)
141+ 'oom_restarts' =>
142+ int(0)
143+ 'hash_restarts' =>
144+ int(0)
145+ 'manual_restarts' =>
146+ int(0)
147+ 'misses' =>
148+ int(0)
149+ 'blacklist_misses' =>
150+ int(0)
151+ 'blacklist_miss_ratio' =>
152+ double(0)
153+ 'opcache_hit_rate' =>
154+ double(0)
155+ }
156+ 'scripts' =>
157+ array(0) {
158+ }
159+ 'jit' =>
160+ array(7) {
161+ 'enabled' =>
162+ bool(false)
163+ 'on' =>
164+ bool(false)
165+ 'kind' =>
166+ int(5)
167+ 'opt_level' =>
168+ int(4)
169+ 'opt_flags' =>
170+ int(6)
171+ 'buffer_size' =>
172+ int(0)
173+ 'buffer_free' =>
174+ int(0)
175+ }
176+ }
177+ ]]>
178+ </screen >
179+ </example >
180+ </refsect1 >
181+
56182 <refsect1 role =" seealso" >
57183 &reftitle.seealso;
58184 <para >
You can’t perform that action at this time.
0 commit comments