We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 200193b commit 798a07dCopy full SHA for 798a07d
ext/opcache/tests/gt16979.phpt
@@ -0,0 +1,29 @@
1
+--TEST--
2
+GH-16979: opcache_is_script_cached support file_cache argument
3
+--INI--
4
+opcache.enable=1
5
+opcache.enable_cli=1
6
+opcache.jit=disable
7
+opcache.jit_buffer_size=0
8
+opcache.file_cache={TMP}
9
+opcache.file_cache_only=1
10
+opcache.log_verbosity_level=4
11
+--EXTENSIONS--
12
+opcache
13
+--FILE--
14
+<?php
15
+
16
+opcache_compile_file(__FILE__);
17
18
+var_dump(
19
+ opcache_is_script_cached(__FILE__, false)
20
+);
21
22
23
+ opcache_is_script_cached(__FILE__, true)
24
25
26
+?>
27
+--EXPECT--
28
+bool(false)
29
+bool(true)
0 commit comments