Skip to content

Commit 15dd23c

Browse files
committed
opcache_is_script_cached: file_cache: test
1 parent 200193b commit 15dd23c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

ext/opcache/tests/gt16979.phpt

+26
Original file line numberDiff line numberDiff line change
@@ -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+
var_dump(
20+
opcache_is_script_cached(__FILE__, true)
21+
);
22+
23+
?>
24+
--EXPECT--
25+
bool(false)
26+
bool(true)

0 commit comments

Comments
 (0)