xref: /PHP-7.0/ext/opcache/tests/bug74663.phpt (revision 60912e66)
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--SKIPIF--
12<?php require_once('skipif.inc'); ?>
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--EXPECT--
25bool(true)
26