summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2019-06-20 10:27:33 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-06-20 12:23:51 +0200
commite1dc9d6c1ea7dd6f3032fbe5c89c02b60c237d8b (patch)
tree38b572a3119bb8a6e264f9481c1a92a0d05e019b
parent525c80ec74305f49545ee109f47fdfa495b24aee (diff)
downloadphp-git-e1dc9d6c1ea7dd6f3032fbe5c89c02b60c237d8b.tar.gz
add test for #78185
(cherry picked from commit 63f2d880888aae381631f126b3ed029b3468f903)
-rw-r--r--ext/opcache/tests/bug78185.phpt22
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"
+