0
votes

I have PHP 7.1.9 (compiled from source) and mbstring: php7.1-mbstring is already the newest version (7.1.17-0ubuntu0.17.10.1). I have added extension_dir and extension=mbstring.so in php.ini. I get message Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/mbstring.so' - /usr/lib/php/20160303/mbstring.so: undefined symbol: compiler_globals in Unknown on line 0

Can anyone suggest what is happening .. I'm a little confused with the versions of php, MBstring and OS (ubuntu 16.04)

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mbstring.so' - /usr/lib/php/20151012/mbstring.so: undefined symbol: compiler_globals in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mbstring.so' - /usr/lib/php/20151012/mbstring.so: undefined symbol: compiler_globals in Unknown on line 0
[PHP Modules]
Core
ctype
date
dom
fileinfo
filter
hash
iconv
json
libxml
mysqli
mysqlnd
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache

[Zend Modules]
Zend OPcache

php -i | grep php.ini

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012                                                                                        /php7.0-mbstring.so' - /usr/lib/php/20151012/php7.0-mbstring.so: undefined symbo                                                                                        l: compiler_globals in Unknown on line 0
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

[mbstring]

extension=mbstring.so

extension_dir = /usr/lib/php/20151012
1

1 Answers

0
votes

Can you try these commands?

php -v

then

php -i | grep php\.ini

Just to know if you're editing the right php.ini file. Do you use apache as your web server? have you enabled apache's php extensions?