php.net |  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
 [2017-04-14 11:03 UTC] alasdair dot stalker at googlemail dot com
Description:
------------
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.


https://github.com/php/php-src/pull/2290/files

http://php.net/manual/en/opcache.configuration.php

https://github.com/php/php-src/pull/2238#issuecomment-271219770

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

or

Documentation updated


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-14 11:09 UTC] krakjoe@php.net
-Package: opcache +Package: Documentation problem
 [2017-04-14 11:59 UTC] peehaa@php.net
-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] peehaa@php.net
-Type: Bug +Type: Feature/Change Request -Package: Documentation problem +Package: opcache
 [2017-04-14 13:40 UTC] peehaa@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2017-04-14 14:08 UTC] peehaa@php.net
Automatic comment from SVN on behalf of peehaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=342325
Log: Documented changes of opcache cli being enabled by default on 7.1.2

#74437
 [2017-04-14 14:09 UTC] peehaa@php.net
-Status: Assigned +Status: Closed
 [2017-04-14 14:09 UTC] peehaa@php.net
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-2021 The PHP Group
All rights reserved.
Last updated: Sat Dec 04 14:03:34 2021 UTC