com php-src: add test for #78185: ext/opcache/tests/bug78185.phpt
| From: | Christoph Michael Becker | Date: | Thu, 20 Jun 2019 10:23:51 +0000 |
| Subject: | com php-src: add test for #78185: ext/opcache/tests/bug78185.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106943@lists.php.net to get a copy of this message | ||
Commit: e1dc9d6c1ea7dd6f3032fbe5c89c02b60c237d8b
Author: Remi Collet <remi@php.net> Thu, 20 Jun 2019 10:27:33 +0200
Committer: Christoph M. Becker <cmbecker69@gmx.de> Thu, 20 Jun 2019 12:23:51 +0200
Parents: 525c80ec74305f49545ee109f47fdfa495b24aee
Branches: PHP-7.3.7
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e1dc9d6c1ea7dd6f3032fbe5c89c02b60c237d8b
Log:
add test for #78185
(cherry picked from commit 63f2d880888aae381631f126b3ed029b3468f903)
Bugs:
https://bugs.php.net/78185
Changed paths:
A ext/opcache/tests/bug78185.phpt
Diff:
diff --git a/ext/opcache/tests/bug78185.phpt b/ext/opcache/tests/bug78185.phpt
new file mode 100644
index 0000000..cd96cf8
--- /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"
+