# Enable Zend OPCache by default in php.ini-development during beta phase?

- Thread: https://externals.io/message/66738
- Original archive: https://news-web.php.net/php.internals/66738
- Started by David Soria Parra on 2013-03-21T15:02:05+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #66738 — David Soria Parra — 2013-03-21T15:02:05+00:00

URL: https://externals.io/message/66738#66738

Hi Internals,

I added the default Zend OPCache settings to php.ini-development and
php.ini-production atm. To have more people testing the opcache I would
like to enable the OPCache in php.ini-development during the beta phase
and disable it once we start the first RC. I hope we catch more errors
with standard applications. As betas should not be used in production
I think we won't have much problems with temporarly enable it.

In case there are no objections I will commit this before beta 2.

David

---

## #66739 — Julien Pauli — 2013-03-21T15:32:53+00:00

URL: https://externals.io/message/66738#66739 · In reply to: #66738

> Hi Internals,
>
> I added the default Zend OPCache settings to php.ini-development and
> php.ini-production atm. To have more people testing the opcache I would
> like to enable the OPCache in php.ini-development during the beta phase
> and disable it once we start the first RC. I hope we catch more errors
> with standard applications. As betas should not be used in production
> I think we won't have much problems with temporarly enable it.
>
> In case there are no objections I will commit this before beta 2.
>
>
+1

Be carefull to pass the refresh param to 0sec for the script to be parsed
every time.
In dev env, one expects its script to be reparsed at every refresh or test.

Julien.Pauli

---

## #66740 — Pierre Joye — 2013-03-21T16:11:36+00:00

URL: https://externals.io/message/66738#66740 · In reply to: #66738

hi,


> Hi Internals,
>
> I added the default Zend OPCache settings to php.ini-development and
> php.ini-production atm. To have more people testing the opcache I would
> like to enable the OPCache in php.ini-development during the beta phase
> and disable it once we start the first RC. I hope we catch more errors
> with standard applications. As betas should not be used in production
> I think we won't have much problems with temporarly enable it.
>
> In case there are no objections I will commit this before beta 2.

Sounds good and best way to get more tests results.

However I'd to suggest to disable the comment optimization as well per
default, and maybe reduce the default optimization level (see the
reflection bug).

Whether we enable it or not per default on final should be decided via
an extra vote and based on its status.

Cheers,
--
Pierre

@pierrejoye

---

## #66751 — johannes@schlueters.de — 2013-03-22T10:26:06+00:00

URL: https://externals.io/message/66738#66751 · In reply to: #66738

> Hi Internals,
> 
> I added the default Zend OPCache settings to php.ini-development and
> php.ini-production atm. To have more people testing the opcache I would
> like to enable the OPCache in php.ini-development during the beta phase
> and disable it once we start the first RC. I hope we catch more errors
> with standard applications. As betas should not be used in production
> I think we won't have much problems with temporarly enable it.
> 
> In case there are no objections I will commit this before beta 2.

As I said on IRC: The setting ios quite irrelevant. Users have to
a) enable it during configure time, and
b) load it via php.ini 
We can have the setting for testing or maybe CLI usage, but default
should imo be on, else it is confusing to users. (... and we might need
a way to have statically compiled Zend Exts ...)

johannes
