|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74437 Opcache CLI Enabled by default in 7.1
Submitted: 2017-04-14 11:03 UTC Modified: 2017-04-14 14:09 UTC
From: alasdair dot stalker at googlemail dot com Assigned: peehaa (profile)
Status: Closed Package: opcache
PHP Version: 7.1Git-2017-04-14 (Git) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: alasdair dot stalker at googlemail dot com
New email:
PHP Version: OS:


 [2017-04-14 11:03 UTC] alasdair dot stalker at googlemail dot com
It looks like opcache has been enabled by default for CLI starting in 7.1. This doesn't match the configuration details and there are various comments stating that it wouldn't be enable by default from what I can tell. I did find it hard to track the changes though and there seems to be some base branch switching issues too. I couldn't see a Changelog entry for it either.

I've marked as a bug rather than a documentation issue as it seems like it was set in error perhaps. It certainly caused us a deal of infrastructure issues (just going from 7.0 to 7.1 and until we disabled opcache for cli).

Hopefully I've submitted this in the right place.

Expected result:
opcache.enable_cli=0 in php.ini-production
opcache.enable_cli=0 in php.ini-development


Documentation updated


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-14 11:09 UTC]
-Package: opcache +Package: Documentation problem
 [2017-04-14 11:59 UTC]
-Assigned To: +Assigned To: peehaa
 [2017-04-14 12:33 UTC] Maggus dot staab at googlemail dot com
Did you open separate bugs for the issues you were running into with enabled cli opache?
 [2017-04-14 12:58 UTC] alasdair dot stalker at googlemail dot com
I've not submitted any other bugs regarding this. I'm not sure how to describe it very well other than that we run a series of consumers of jobs from a queue and that when starting up caused a large CPU spike and also a knock on with high memory usage.
 [2017-04-14 13:40 UTC]
-Type: Bug +Type: Feature/Change Request -Package: Documentation problem +Package: opcache
 [2017-04-14 13:40 UTC]
-Type: Feature/Change Request +Type: Documentation Problem
 [2017-04-14 14:08 UTC]
Automatic comment from SVN on behalf of peehaa
Log: Documented changes of opcache cli being enabled by default on 7.1.2

 [2017-04-14 14:09 UTC]
-Status: Assigned +Status: Closed
 [2017-04-14 14:09 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Dec 08 20:05:51 2022 UTC