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

opcache is a zend_extension #624

Open
davidc opened this issue May 7, 2021 · 0 comments
Open

opcache is a zend_extension #624

davidc opened this issue May 7, 2021 · 0 comments

Comments

@davidc
Copy link

davidc commented May 7, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.10
  • Ruby: 2.5.5p157
  • Distribution: Debian 10.9
  • Module version: v7.1.0

How to reproduce (e.g Puppet code you use)

  class { 'php':
    ensure       => present,
  }

What are you seeing

Debian appears to install php7.3-opcache by default, with a correct 10-opcache.ini containing a "zend_extension" line.

This module appears to notice an opcache extension and adds an "extension" line to that ini file.

This causes an error on every PHP startup.

What behaviour did you expect instead

To understand that it's a zend extension (or to not touch that file at all)

Output log

# php
PHP Warning:  PHP Startup: Invalid library (appears to be a Zend Extension, try loading using zend_extension=opcache.so from php.ini) in Unknown on line 0
^C
# cat /etc/php/7.3/cli/conf.d/10-opcache.ini
; configuration for php opcache module
; priority=10
zend_extension=opcache.so
extension = opcache.so

Any additional information you'd like to impart

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

No branches or pull requests

1 participant