xref: /PHP-8.1/ext/opcache/tests/bug65559.phpt (revision e9f783fc)
1--TEST--
2Bug #65559 (cache not cleared if changes occur while running)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=2
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11$file =  __DIR__ . "/bug6559.inc.php";
12file_put_contents($file, '<?php return 1;');
13$var = include $file;
14var_dump($var);
15file_put_contents($file, '<?php return 2;');
16$var = include $file;
17var_dump($var);
18@unlink($file);
19?>
20--EXPECT--
21int(1)
22int(2)
23