xref: /PHP-8.2/ext/opcache/tests/bug74663.phpt (revision e9f783fc)
1--TEST--
2Bug #74663 (Segfault with opcache.memory_protect and validate_timestamp)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.enable_file_override=1
8opcache.validate_timestamps=1
9opcache.revalidate_freq=0
10opcache.protect_memory=1
11--EXTENSIONS--
12opcache
13--FILE--
14<?php
15$file = __DIR__ . "/bug74663.inc";
16file_put_contents($file, "");
17include $file;
18
19var_dump(is_file($file));
20?>
21--CLEAN--
22<?php
23unlink(__DIR__ . "/bug74663.inc");
24?>
25--EXPECT--
26bool(true)
27