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

PHP Startup: brotli: Unable to initialize module #19

Open
peixotorms opened this issue Mar 19, 2019 · 2 comments
Open

PHP Startup: brotli: Unable to initialize module #19

peixotorms opened this issue Mar 19, 2019 · 2 comments

Comments

@peixotorms
Copy link

Hi there,

I installed php-ext-brotli on PHP 7.2 and I got this error when I run php -v on ubuntu 18.04

PHP Warning:  PHP Startup: brotli: Unable to initialize module
Module compiled with module API=20180731
PHP    compiled with module API=20170718
These options need to match
 in Unknown on line 0
PHP 7.2.16-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Mar  7 2019 20:23:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.16-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
@kjdev
Copy link
Owner

kjdev commented Mar 19, 2019

The module (brotli.so) I built is different from the PHP version.

  • PHP 7.2: PHP API => 20170718
  • PHP 7.3: PHP API => 20180731

Install the module you built with PHP 7.2.

@peixotorms
Copy link
Author

Well, that's the issue... I only have PHP 7.2 installed, not 7.3.
Why does it then, compile with PHP 7.3?

I upgraded PHP to 7.3 and it now works fine.
No luck with PHP 7.2 only, although steup was working a few months ago on a similar setup.

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

2 participants