You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting at v5.0.0, the buildpack refuses to use php 8.3, giving a warning that "No PHP version satisfies all constraints", then instead defaults to 8.1, breaking my build and failing the push. Localy, composer install/composer update work completely fine, and all composer checks confirm that there are no php version conflicts for my dependencies. I had to downgrade back to v4 to get cf push working - v4 works fine using PHP 8.3.
Here is the full cf push output:
$ cf push app -f ../manifest-dev.yml -p . -t 180
Pushing app X to org X / space X as X
Applying manifest file ..\manifest-dev.yml...
Staging app and tracing logs...
Downloading php_buildpack...
Downloaded php_buildpack
Cell 1b520d84-42fa-44e9-8045-ad70e439e563 creating container for instance 57cbbcb2-3a52-4b44-900d-8741962a3a7c
Security group rules were updated
Cell 1b520d84-42fa-44e9-8045-ad70e439e563 successfully created container for instance 57cbbcb2-3a52-4b44-900d-8741962a3a7c
Downloading app package...
Downloading build artifacts cache...
Downloaded build artifacts cache (30.8M)
Downloaded app package (164.9M)
-----> Php Buildpack version 5.0.1 WARNING buildpack version changed from 4.6.28 to 5.0.1
-----> Supplying PHP
Loading user configuration from .bp-config/options.json
Running extension Configure phase -----> Composer requires PHP ^8.3
Locked dependencies have 84 additional PHP constraints
Warning: No PHP version satisfies all constraints, using default
Installing PHP 8.1.32
-----> Installing php 8.1.32
Download [https://buildpacks.cloudfoundry.org/dependencies/php/php_8.1.32_linux_x64_cflinuxfs4_51db527b.tgz] WARNING php 8.1.x will no longer be available in new buildpacks released after 2024-11-25.
See: http://php.net/supported-versions.php
Applying user PHP configuration overrides
Enabling fpm.d config includes
Web server: httpd
Installing HTTPD 2.4.63
-----> Installing httpd 2.4.63
Download [https://buildpacks.cloudfoundry.org/dependencies/httpd/httpd_2.4.63_linux_x64_cflinuxfs4_cf38773e.tgz]
HTTPD installed successfully
Running extension Compile phase
-----> NewRelic services not detected.
-----> Installing PHP for Composer
-----> Installing php 8.1.32
Copy [/tmp/cache/final/dependencies/b2275b1adb32076bb8a486c7f6c1dc92f6632e2d76e8ad852ea9795dfa005f57/php_8.1.32_linux_x64_cflinuxfs4_51db527b.tgz] WARNING php 8.1.x will no longer be available in new buildpacks released after 2024-11-25.
See: http://php.net/supported-versions.php
Configured PHP with 8 extensions
-----> Installing composer 2.8.8
-----> Installing composer 2.8.8
Download [https://buildpacks.cloudfoundry.org/dependencies/composer/composer_2.8.8_linux_noarch_any-stack_957263e2.phar]
-----> Installing Composer dependencies
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 84 installs, 0 updates, 0 removals
Illuminate\Foundation\ComposerScripts::postAutoloadDump
Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 8.3.0". You are running 8.1.32.
Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception
In platform_check.php line 24:
Composer detected issues in your platform: Your Composer dependencies requi
re a PHP version ">= 8.3.0". You are running 8.1.32.
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]
-----> Composer command failed ERROR Extension compilation failed: extension composer compile failed: failed to run composer: composer install failed: exit status 1
Failed to compile droplet: Failed to run all supply scripts: exit status 14
Exit status 223
BuildpackCompileFailed - App staging failed in the buildpack compile phase
FAILED
Starting at v5.0.0, the buildpack refuses to use php 8.3, giving a warning that "No PHP version satisfies all constraints", then instead defaults to 8.1, breaking my build and failing the push. Localy, composer install/composer update work completely fine, and all composer checks confirm that there are no php version conflicts for my dependencies. I had to downgrade back to v4 to get cf push working - v4 works fine using PHP 8.3.
Here is the full cf push output:
$ cf push app -f ../manifest-dev.yml -p . -t 180
Pushing app X to org X / space X as X
Applying manifest file ..\manifest-dev.yml...
Manifest applied
Packaging files to upload...
Uploading files...
10.75 MiB / 10.75 MiB [=======================================================================================================================================================] 100.00% 1s
Waiting for API to complete processing files...
Staging app and tracing logs...
Downloading php_buildpack...
Downloaded php_buildpack
Cell 1b520d84-42fa-44e9-8045-ad70e439e563 creating container for instance 57cbbcb2-3a52-4b44-900d-8741962a3a7c
Security group rules were updated
Cell 1b520d84-42fa-44e9-8045-ad70e439e563 successfully created container for instance 57cbbcb2-3a52-4b44-900d-8741962a3a7c
Downloading app package...
Downloading build artifacts cache...
Downloaded build artifacts cache (30.8M)
Downloaded app package (164.9M)
-----> Php Buildpack version 5.0.1
WARNING buildpack version changed from 4.6.28 to 5.0.1
-----> Supplying PHP
Loading user configuration from .bp-config/options.json
Running extension Configure phase
-----> Composer requires PHP ^8.3
Locked dependencies have 84 additional PHP constraints
Warning: No PHP version satisfies all constraints, using default
Installing PHP 8.1.32
-----> Installing php 8.1.32
Download [https://buildpacks.cloudfoundry.org/dependencies/php/php_8.1.32_linux_x64_cflinuxfs4_51db527b.tgz]
WARNING php 8.1.x will no longer be available in new buildpacks released after 2024-11-25.
See: http://php.net/supported-versions.php
Applying user PHP configuration overrides
Enabling fpm.d config includes
Web server: httpd
Installing HTTPD 2.4.63
-----> Installing httpd 2.4.63
Download [https://buildpacks.cloudfoundry.org/dependencies/httpd/httpd_2.4.63_linux_x64_cflinuxfs4_cf38773e.tgz]
HTTPD installed successfully
Running extension Compile phase
-----> NewRelic services not detected.
-----> Installing PHP for Composer
-----> Installing php 8.1.32
Copy [/tmp/cache/final/dependencies/b2275b1adb32076bb8a486c7f6c1dc92f6632e2d76e8ad852ea9795dfa005f57/php_8.1.32_linux_x64_cflinuxfs4_51db527b.tgz]
WARNING php 8.1.x will no longer be available in new buildpacks released after 2024-11-25.
See: http://php.net/supported-versions.php
Configured PHP with 8 extensions
-----> Installing composer 2.8.8
-----> Installing composer 2.8.8
Download [https://buildpacks.cloudfoundry.org/dependencies/composer/composer_2.8.8_linux_noarch_any-stack_957263e2.phar]
-----> Installing Composer dependencies
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 84 installs, 0 updates, 0 removals
Generating optimized autoload files
Composer detected issues in your platform: Your Composer dependencies requi
re a PHP version ">= 8.3.0". You are running 8.1.32.
install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--download-only] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-progress] [--no-install] [--audit] [--audit-format AUDIT-FORMAT] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] [...]
-----> Composer command failed
ERROR Extension compilation failed: extension composer compile failed: failed to run composer: composer install failed: exit status 1
Failed to compile droplet: Failed to run all supply scripts: exit status 14
Exit status 223
BuildpackCompileFailed - App staging failed in the buildpack compile phase
FAILED