diff options
author | Remi Collet <remi@php.net> | 2019-06-20 10:28:26 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2019-06-20 10:28:26 +0200 |
commit | fa70aedf03b8e7bd1ea5a03ed6e68162caf59a1d (patch) | |
tree | f669f8f9cad7df00edfc496e7f1dbfce80a9a735 | |
parent | 4488475a3e3b978f7acab11d1550854ba9b988ee (diff) | |
parent | a197dc72c346316b6f31b3ffdb0399941f448c94 (diff) | |
download | php-git-fa70aedf03b8e7bd1ea5a03ed6e68162caf59a1d.tar.gz |
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
add test for #78185
-rw-r--r-- | ext/opcache/tests/bug78185.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug78185.phpt b/ext/opcache/tests/bug78185.phpt new file mode 100644 index 0000000000..cd96cf848c --- /dev/null +++ b/ext/opcache/tests/bug78185.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #78185: file cache only no longer works +--INI-- +opcache.enable_cli=1 +opcache.optimization_level=-1 +opcache.file_cache={PWD} +opcache.file_cache_only=1 +--FILE-- +<?php +foreach (glob(__DIR__ . '/*/' . __DIR__ . '/*.bin') as $p) { + var_dump($p); +} +?> +--CLEAN-- +<?php +foreach (glob(__DIR__ . '/*/' . __DIR__ . '/*.bin') as $p) { + unlink($p); +} +?> +--EXPECTF-- +string(%d) "%s78185.php.bin" + |