Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling opcache extension by default in CLI #409

Closed
dkarlovi opened this issue Jun 5, 2023 · 2 comments · Fixed by #410
Closed

Enabling opcache extension by default in CLI #409

dkarlovi opened this issue Jun 5, 2023 · 2 comments · Fixed by #410

Comments

@dkarlovi
Copy link
Contributor

dkarlovi commented Jun 5, 2023

When running Psalm, it says

Install the opcache extension to make use of JIT on PHP 8.0+ for a 20%+ performance boost!

which makes sense, some heavy duty data shoveling would probably benefit from Opcache being installed and enabled in CLI.

WDYT?

Note: even if I enable it manually, it doesn't work

/project $ php -d zend_extension=opcache.so -d opcache.enable_cli=1 /tools/psalm | head 

Install the opcache extension to make use of JIT on PHP 8.0+ for a 20%+ performance boost!

Target PHP version: 8.2 (inferred from current PHP version).
Scanning files...
Analyzing files...

That might be related to Psalm's use of https://github.com/composer/xdebug-handler

@jakzal
Copy link
Owner

jakzal commented Jun 6, 2023

I don't see why not.

@dkarlovi
Copy link
Contributor Author

dkarlovi commented Jun 9, 2023

@jakzal there we go, Psalm can now see the Opcache ext when running in the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants