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