Hi,
I’m doing localdev under Windows 10 / XAMPP. To speed up some other cli work I do, I had enabled the Zend opcode cache in my php.ini:
; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=0
Having done this, the bake shell runs exactly once, and is then no longer available. ie:
> bin\cake
Welcome to CakePHP v3.3.3 Console
---------------------------------------------------------------
App : src
Path: E:\Projects\websites\dam2\site\src\
PHP : 5.6.19
---------------------------------------------------------------
Current Paths:
* app: src
* root: E:\Projects\websites\dam2\site
* core: E:\Projects\websites\dam2\site\vendor\cakephp\cakephp
Available Shells:
[Alt3/Swagger] swagger
[DebugKit] benchmark, whitespace
[Migrations] migrations
[CORE] cache, i18n, orm_cache, plugin, routes, server
[app] console
Purging the opcode cache manually allows the command to work once only.
Reverting the opcache.enablecli
setting in the php.ini
and the shell is callable again.
Not a big deal, but any idea what makes the Bake shell incompatible with the opcache?