|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74663 Segfault with opcache.memory_protect and validate_timestamp
Submitted: 2017-05-27 13:44 UTC Modified: -
From: Assigned:
Status: Closed Package: opcache
PHP Version: 7.0.19 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
19 + 11 = ?
Subscribe to this entry?

 [2017-05-27 13:44 UTC]
sapi/cli/php -d opcache.protect_memory=1 -d opcache.enable_file_override=1 -dopcache.validate_timestamps=1 -d opcache.file_update_protection=0  -d opcache.revalidate_freq=0 test.php

Test script:

file_put_contents(__DIR__ . "/bug.php", "");
include __DIR__ . "/bug.php";
//file_put_contents(__DIR__ . "/bug.php", "<?php ");

var_dump(is_file(__DIR__ . "/bug.php"));

Expected result:
non segfault

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-05-27 14:42 UTC] ekin at coproductivity dot com
Segfault also on 7.1.3
 [2017-05-27 14:44 UTC]
Automatic comment on behalf of
Log: Fixed bug #74663 (Segfault with opcache.memory_protect and validate_timestamp)
 [2017-05-27 14:44 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Nov 28 22:01:30 2023 UTC