Probably because PHP 7.0.2 will be used in combination with some dependencies that are not compatible. Removing composer.lock
, running composer install
and pushing changes fixed this for me.
git push heroku master
Counting objects: 140, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (75/75), done.
Writing objects: 100% (140/140), 28.30 KiB | 0 bytes/s, done.
Total 140 (delta 51), reused 140 (delta 51)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> PHP app detected
remote: -----> Bootstrapping...
remote: -----> Installing system packages...
remote: NOTICE: No runtime required in composer.json; requirements
remote: from dependencies in composer.lock will be used for selection
remote: - php (7.0.2)
remote:
remote: ! ERROR: Failed to install system packages.
remote:
remote: Your platform requirements (for runtimes and extensions) could
remote: not be resolved to an installable set of dependencies, or a
remote: repository was unreachable.
remote:
remote: Full error information from installation attempt:
remote:
remote: > Loading repositories with available runtimes and extensions
remote: >
remote: > - Installing heroku/installer-plugin (1.0.0)
remote: > Symlinked from /app/tmp/buildpacks/php/support/installer/
remote: >
remote: > - Installing php (7.0.2)
remote: > Downloading: 100%
remote: >
remote: >
remote: >
remote: > [RuntimeException]
remote: > Failed to execute 'tar -xzf '/tmp/build_fd02994fae740c7dae969cf216197376/.heroku/php/vendor/composer/9b653c79/1f67e6a0d367af0e0cdd9923f4b2e113.gz' -C '/tmp/build_fd02994fae740c7dae969cf216197376/.heroku/php''
remote: >
remote: >
remote: > gzip: stdin: unexpected end of file
remote: > tar: Unexpected EOF in archive
remote: > tar: Unexpected EOF in archive
remote: > tar: Error is not recoverable: exiting now
remote: >
remote: >
remote: >
remote: >
remote: > install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
remote: >
remote: >
remote:
remote: Please verify that all requirements for runtime versions in
remote: 'composer.lock' are compatible with the list below, and ensure
remote: all required extensions are available for the desired runtimes.
remote:
remote: For reference, the following runtimes are currently available:
remote:
remote: PHP: 7.0.2, 7.0.1, 7.0.0, 5.6.17, 5.6.16, 5.5.31, 5.5.30
remote: HHVM: 3.5.1
remote:
remote: For a list of supported runtimes & extensions on Heroku, please
remote: refer to: https://devcenter.heroku.com/articles/php-support
remote:
remote:
remote: ! Push rejected, failed to compile PHP app