Skip to content

Commit 798a07d

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

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

ext/opcache/tests/gt16979.phpt

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

0 commit comments

Comments
 (0)