com php-src: add test for #78185: ext/opcache/tests/bug78185.phpt

From: Date: Thu, 20 Jun 2019 08:27:33 +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-106932@lists.php.net to get a copy of this message
Commit: 63f2d880888aae381631f126b3ed029b3468f903 Author: Remi Collet <remi@php.net> Thu, 20 Jun 2019 10:27:33 +0200 Parents: cd6a6e4cf2677bfbe2a21164239737eb22bd4da6 Branches: PHP-7.2 PHP-7.3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=63f2d880888aae381631f126b3ed029b3468f903 Log: add test for #78185 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" +

« previous php.cvs (#106932) next »