Failures since upgrading to PHP 7.1
I’ll give as much context as I can.
Build process:
apk --no-cache add php7-calendar php7-intl
apk --no-cache upgrade
composer install
My Docker image where this is running is phpunit/phpunit:6.0.6.
My composer.json file is:
{
"name": "redacted",
"description": "redacted",
"config": {
"optimize-autoloader": true
},
"require": {
"facebook/graph-sdk" : "~5.0",
"phpmailer/phpmailer": "^5.2.22",
"phpfastcache/phpfastcache": "^5.0",
"abraham/twitteroauth": "^0.7.2",
"tumblr/tumblr": "^0.2.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"phpunit/dbunit": "^3.0",
"squizlabs/php_codesniffer": "^2.0"
}
}
All composer packages are up-to-date.
The biggest change I noticed is that previously `apk —no-cache
upgrade` updated to PHP 7.0.x and things still worked.
Now `apk —no-cache upgrade` updates to PHP 7.1.x.
Here’s the error output:
Failed loading /usr/lib/php7/modules/xdebug.so: Error relocating /usr/lib/php7/modules/xdebug.so: php_log_err: symbol not found
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpunit/dbunit 3.0.0 -> satisfiable by phpunit/dbunit[3.0.0].
- phpunit/dbunit 3.0.0 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
Problem 2
- Installation request for phpunit/php-code-coverage 5.2.1 -> satisfiable by phpunit/php-code-coverage[5.2.1].
- phpunit/php-code-coverage 5.2.1 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
Problem 3
- Installation request for phpunit/php-token-stream 1.4.11 -> satisfiable by phpunit/php-token-stream[1.4.11].
- phpunit/php-token-stream 1.4.11 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
Problem 4
- Installation request for squizlabs/php_codesniffer 2.8.1 -> satisfiable by squizlabs/php_codesniffer[2.8.1].
- squizlabs/php_codesniffer 2.8.1 requires ext-simplexml * -> the requested PHP extension simplexml is missing from your system.
Problem 5
- Installation request for theseer/tokenizer 1.1.0 -> satisfiable by theseer/tokenizer[1.1.0].
- theseer/tokenizer 1.1.0 requires ext-tokenizer * -> the requested PHP extension tokenizer is missing from your system.
Problem 6
- phpunit/php-code-coverage 5.2.1 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
- phpunit/phpunit 6.1.3 requires phpunit/php-code-coverage ^5.2 -> satisfiable by phpunit/php-code-coverage[5.2.1].
- Installation request for phpunit/phpunit 6.1.3 -> satisfiable by phpunit/phpunit[6.1.3].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php7/php.ini
- /etc/php7/conf.d/00_bcmath.ini
- /etc/php7/conf.d/00_calendar.ini
- /etc/php7/conf.d/00_ctype.ini
- /etc/php7/conf.d/00_curl.ini
- /etc/php7/conf.d/00_dom.ini
- /etc/php7/conf.d/00_intl.ini
- /etc/php7/conf.d/00_json.ini
- /etc/php7/conf.d/00_mbstring.ini
- /etc/php7/conf.d/00_mcrypt.ini
- /etc/php7/conf.d/00_opcache.ini
- /etc/php7/conf.d/00_openssl.ini
- /etc/php7/conf.d/00_pcntl.ini
- /etc/php7/conf.d/00_pdo.ini
- /etc/php7/conf.d/00_session.ini
- /etc/php7/conf.d/00_soap.ini
- /etc/php7/conf.d/00_xml.ini
- /etc/php7/conf.d/00_zip.ini
- /etc/php7/conf.d/00_zlib.ini
- /etc/php7/conf.d/01_exif.ini
- /etc/php7/conf.d/01_mysqlnd.ini
- /etc/php7/conf.d/01_pdo_pgsql.ini
- /etc/php7/conf.d/01_pdo_sqlite.ini
- /etc/php7/conf.d/01_phar.ini
- /etc/php7/conf.d/01_xmlreader.ini
- /etc/php7/conf.d/02_pdo_mysql.ini
- /etc/php7/conf.d/xdebug.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
I can help narrowing this down to a simpler example if necessary.
(from redmine: issue id 7263, created on 2017-05-03, closed on 2018-08-22)
- Uploads: