Skip to content

Move optimizer into core #6642

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

Closed
wants to merge 2 commits into from
Closed

Move optimizer into core #6642

wants to merge 2 commits into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Jan 26, 2021

This only moves the files, adjusts the build system, exports APIs and does minor fixups to make sure the code builds.

This does not yet try to make the optimizer usable independent of opcache.

@nikic
Copy link
Member Author

nikic commented Jan 26, 2021

@dstogov Any concerns with moving the optimizer into core?

This only moves the files, adjusts the build system, exports APIs
and does minor fixups to make sure the code builds.

This does not yet try to make the optimizer usable independent
of opcache.
@dstogov
Copy link
Member

dstogov commented Jan 27, 2021

This doesn't work for me. I build PHP in a separate directory. Build fails with "mkdir: cannot create directory 'Zend/Optimizer/.libs': No such file or directory", because "Zend/Optimizer" is missing.

I don't object in general.

@php-pulls php-pulls closed this in 83be073 Jan 28, 2021
@mvorisek
Copy link
Contributor

mvorisek commented May 16, 2021

@nikic I am looking into https://bugs.php.net/bug.php?id=81041 bug.

there is comment, citing:

opcache has a ton of optimization stages and so does far more than caching

What opcache really does in PHP? Does it do any optimization (outside caching parsed files) and does the optimizations depend on opcache.enable_cli php.ini value, if so, why opcache.enable_cli is not enabled for CLI by default?

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 this pull request may close these issues.

3 participants