Skip to content

Commit

Permalink
add test for #78185
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jun 20, 2019
1 parent cd6a6e4 commit 63f2d88
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ext/opcache/tests/bug78185.phpt
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 63f2d88

Please sign in to comment.