File tree Expand file tree Collapse file tree 1 file changed +126
-1
lines changed
reference/opcache/functions Expand file tree Collapse file tree 1 file changed +126
-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: yannick Status: ready -->
3+ <!-- EN-Revision: 23d4ebeeb5fb4ad24acb8a63f062f3406de3b2bc Maintainer: yannick Status: ready -->
44<!-- Reviewed: no -->
55<refentry xml : id =" function.opcache-get-status" xmlns =" http://docbook.org/ns/docbook" xmlns : xlink =" http://www.w3.org/1999/xlink" >
66 <refnamediv >
5252 </para >
5353 </refsect1 >
5454
55+ <refsect1 role =" changelog" >
56+ &reftitle.changelog;
57+ <informaltable >
58+ <tgroup cols =" 2" >
59+ <thead >
60+ <row >
61+ <entry >&Version; </entry >
62+ <entry >&Description; </entry >
63+ </row >
64+ </thead >
65+ <tbody >
66+ <row >
67+ <entry >PHP 8.3.0</entry >
68+ <entry >
69+ <code >opcache_get_status()['scripts'][n]['revalidate']</code >
70+ contient désormais un timestamp Unix indiquant quand la prochaine
71+ revalidation du timestamp des scripts est prévue, comme dicté par la directive
72+ INI <link linkend =" ini.opcache.revalidate-freq" ><literal >opcache.revalidate_freq</literal ></link >.
73+ </entry >
74+ </row >
75+ </tbody >
76+ </tgroup >
77+ </informaltable >
78+ </refsect1 >
79+
80+ <refsect1 role =" examples" >
81+ &reftitle.examples;
82+ <example >
83+ <title >Un exemple de <function >opcache_get_status</function ></title >
84+ <programlisting role =" php" >
85+ <![CDATA[
86+ <?php
87+ var_dump(opcache_get_status());
88+ ?>
89+ ]]>
90+ </programlisting >
91+ &example.outputs.similar;
92+ <screen >
93+ <![CDATA[
94+ array(9) {
95+ 'opcache_enabled' =>
96+ bool(true)
97+ 'cache_full' =>
98+ bool(false)
99+ 'restart_pending' =>
100+ bool(false)
101+ 'restart_in_progress' =>
102+ bool(false)
103+ 'memory_usage' =>
104+ array(4) {
105+ 'used_memory' =>
106+ int(9167936)
107+ 'free_memory' =>
108+ int(125049792)
109+ 'wasted_memory' =>
110+ int(0)
111+ 'current_wasted_percentage' =>
112+ double(0)
113+ }
114+ 'interned_strings_usage' =>
115+ array(4) {
116+ 'buffer_size' =>
117+ int(8388608)
118+ 'used_memory' =>
119+ int(2593616)
120+ 'free_memory' =>
121+ int(5794992)
122+ 'number_of_strings' =>
123+ int(10358)
124+ }
125+ 'opcache_statistics' =>
126+ array(13) {
127+ 'num_cached_scripts' =>
128+ int(0)
129+ 'num_cached_keys' =>
130+ int(0)
131+ 'max_cached_keys' =>
132+ int(16229)
133+ 'hits' =>
134+ int(0)
135+ 'start_time' =>
136+ int(1733310010)
137+ 'last_restart_time' =>
138+ int(0)
139+ 'oom_restarts' =>
140+ int(0)
141+ 'hash_restarts' =>
142+ int(0)
143+ 'manual_restarts' =>
144+ int(0)
145+ 'misses' =>
146+ int(0)
147+ 'blacklist_misses' =>
148+ int(0)
149+ 'blacklist_miss_ratio' =>
150+ double(0)
151+ 'opcache_hit_rate' =>
152+ double(0)
153+ }
154+ 'scripts' =>
155+ array(0) {
156+ }
157+ 'jit' =>
158+ array(7) {
159+ 'enabled' =>
160+ bool(false)
161+ 'on' =>
162+ bool(false)
163+ 'kind' =>
164+ int(5)
165+ 'opt_level' =>
166+ int(4)
167+ 'opt_flags' =>
168+ int(6)
169+ 'buffer_size' =>
170+ int(0)
171+ 'buffer_free' =>
172+ int(0)
173+ }
174+ }
175+ ]]>
176+ </screen >
177+ </example >
178+ </refsect1 >
179+
55180 <refsect1 role =" seealso" >
56181 &reftitle.seealso;
57182 <para >
You can’t perform that action at this time.
0 commit comments