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 e77866eCopy full SHA for e77866e
ext/opcache/tests/gt16979.phpt
@@ -0,0 +1,27 @@
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=0
7
+opcache.file_cache={TMP}
8
+opcache.file_cache_only=1
9
+--EXTENSIONS--
10
+opcache
11
+--FILE--
12
+<?php
13
+
14
+opcache_compile_file(__FILE__);
15
16
+var_dump(
17
+ opcache_is_script_cached(__FILE__, false)
18
+);
19
20
21
+ opcache_is_script_cached(__FILE__, true)
22
23
24
+?>
25
+--EXPECT--
26
+bool(false)
27
+bool(true)
0 commit comments