Skip to content

Updating version for php for 8.2.X #1250

Merged
ivanovac merged 2 commits intomasterfrom
pr-by-releng-bot-1775727592
Apr 9, 2026
Merged

Updating version for php for 8.2.X #1250
ivanovac merged 2 commits intomasterfrom
pr-by-releng-bot-1775727592

Conversation

@ari-wg-gitbot
Copy link
Copy Markdown
Contributor

@ari-wg-gitbot ari-wg-gitbot commented Apr 9, 2026

Add PHP 8.2.30 with cflinuxfs5 support

Changes

  • Added php 8.2.30 artifact for cflinuxfs5
  • Replaced php 8.2.30 cflinuxfs4 artifact (fixed broken build — see below)
  • Updated fixtures/with_phpredis to use {PHP_82_LATEST} instead of hardcoded 8.2.28, which is no longer in the manifest

Why the cflinuxfs4 artifact was replaced

The original php_8.2.30_linux_x64_cflinuxfs4_66c78136.tgz contained an absolute symlink:

./lib/libgpg-error.so → /lib/x86_64-linux-gnu/libgpg-error.so.0

libbuildpack rejects absolute symlinks as a security measure, causing:

**ERROR** Could not install PHP: cannot link to an absolute path when extracting archives

Root cause: binary-builder's setupTar() uses cp -a to bundle system libraries into the artifact, which preserves host symlinks verbatim. On the cflinuxfs4 build host, /usr/lib/x86_64-linux-gnu/libgpg-error.so happens to be an absolute symlink; on cflinuxfs5 it is relative. cflinuxfs5 was unaffected as it is relative.

The broken artifact was manually repacked with the symlink corrected to relative (libgpg-error.so → libgpg-error.so.0) and re-uploaded to S3 as php_8.2.30_linux_x64_cflinuxfs4_b5ea149e.tgz.

Also updated fixtures/with_phpredis/.bp-config/options.json from the hardcoded "PHP_VERSION": "8.2.28" to "{PHP_82_LATEST}", since 8.2.28 is no longer in the manifest.

A fix to binary-builder has been submitted to prevent recurrence:
https://github.com/cloudfoundry/binary-builder/pull/new/fix-absolute-symlinks-in-php-artifact

Copy link
Copy Markdown
Contributor

@ivanovac ivanovac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ivanovac ivanovac merged commit d45d48f into master Apr 9, 2026
7 checks passed
@ivanovac ivanovac deleted the pr-by-releng-bot-1775727592 branch April 9, 2026 15:07
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

Successfully merging this pull request may close these issues.

2 participants