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

zend-opcache conflict #99

Closed
pavarnos opened this issue Jan 19, 2019 · 3 comments · Fixed by #100
Closed

zend-opcache conflict #99

pavarnos opened this issue Jan 19, 2019 · 3 comments · Fixed by #100
Assignees
Labels
Milestone

Comments

@pavarnos
Copy link
Contributor

Hi. Thanks so much for ComposerRequireChecker. I spent the day with it on a medium sized project and it found quite a few things to fix. great tool!

One small problem:

if i specify

require: {
        "ext-zend-opcache": "*",
}

in my composer.json then composer update works as expected but i get an error Extension zend-opcache does not exist from require checker.

if i specify

require: {
        "ext-Zend Opcache": "*",
}

in composer.json, then composer update fails with The requested PHP extension ext-zend opcache should be required as ext-zend-opcache. but require checker is happy

@Ocramius
Copy link
Collaborator

@pavarnos possibly a mismatch between what composer thinks is ext-zend-opcache, versus what PHP-core calls the extension?

See

$extensionReflection = new \ReflectionExtension($extensionName);

@maglnet
Copy link
Owner

maglnet commented Jan 19, 2019

It seems that composer somehow creates a slug of the extension name before comparing.
We should find the part where composer modified the extension names and could implement this, too?

@pavarnos
Copy link
Contributor Author

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

Successfully merging a pull request may close this issue.

3 participants