# Enable opcache by default in PHP7?

- Thread: https://externals.io/message/81679
- Original archive: https://news-web.php.net/php.internals/81679
- Started by Xinchen Hui on 2015-02-03T04:26:19+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

---

## #81679 — Xinchen Hui — 2015-02-03T04:26:19+00:00

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

Hey:

      opcache is disabled by default configure, I am plan to enable it
by default

      and also add zend_extension=opcache.so in php.ini-product/developmement

      is there any objections or concerns?

thanks

-- 
Xinchen Hui
@Laruence
http://www.laruence.com/

---

## #81680 — Pierre Joye — 2015-02-03T05:59:26+00:00

URL: https://externals.io/message/81679#81680 · In reply to: #81679

>
> Hey:
>
>       opcache is disabled by default configure, I am plan to enable it
> by default
>
>       and also add zend_extension=opcache.so in
php.ini-product/developmement
>
>       is there any objections or concerns?
>
> thanks

No problem here for production. I am however not sure about Dev, it can
still be disable using ini setting but I am not sure it works well with any
debugging extension out there. Does it?

---

## #81681 — Lior Kaplan — 2015-02-03T06:39:37+00:00

URL: https://externals.io/message/81679#81681 · In reply to: #81680

>
> 
> > […]
> php.ini-product/developmement
> > […]
>
> No problem here for production. I am however not sure about Dev, it can
> still be disable using ini setting but I am not sure it works well with
any
> debugging extension out there. Does it?

Do we have any loading order between opcache and the debugging extensions
(e.g. xdebug) ?

If we do, it's best to keep opcache disabled for dev.

Kaplan

---

## #81695 — Julien Pauli — 2015-02-03T09:05:35+00:00

URL: https://externals.io/message/81679#81695 · In reply to: #81680

OPcache will bring nothing to dev env, except possible failures and WTFs.

So I suggest not enabling it in development php.ini.


Julien.P




> 
> > […]
> php.ini-product/developmement
> > […]
>
> No problem here for production. I am however not sure about Dev, it can
> still be disable using ini setting but I am not sure it works well with any
> debugging extension out there. Does it?
