Skip to content

Commit e77866e

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

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

ext/opcache/tests/gt16979.phpt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
var_dump(
21+
opcache_is_script_cached(__FILE__, true)
22+
);
23+
24+
?>
25+
--EXPECT--
26+
bool(false)
27+
bool(true)

0 commit comments

Comments
 (0)