Skip to content

fix: ignore pecl channel-update failures - #547

Merged
sjinks merged 1 commit into
trunkfrom
pltfrm-2570-codespaces-pecl-channel-update-is-build-critical-transient
Jul 27, 2026
Merged

sjinks merged 1 commit into
trunkfrom
pltfrm-2570-codespaces-pecl-channel-update-is-build-critical-transient

Conversation

@sjinks

@sjinks sjinks commented Jul 27, 2026

Copy link
Copy Markdown
Member

This pull request makes the PHP installation script more robust by ensuring that failures during PECL channel updates do not interrupt the installation process. This is achieved by allowing the pecl channel-update and pecl update-channels commands to fail without causing the script to exit. Additionally, a minor fix was made to ensure proper case statement termination.

Error handling improvements:

  • All pecl channel-update pecl.php.net commands in both Alpine and Debian/Ubuntu PHP setup functions now use || true to prevent script failure if the channel update fails. [1] [2] [3] [4] [5] [6] [7] [8]
  • The global pecl update-channels command at the end of the script also uses || true for the same reason.

Script correctness:

  • Added a missing ;; to properly terminate a case statement, preventing potential syntax errors.

@sjinks sjinks self-assigned this Jul 27, 2026
Copilot AI review requested due to automatic review settings July 27, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Improves robustness of the PHP feature installation script by preventing transient PECL channel update failures from aborting installs, and fixes case statement termination to avoid shell syntax issues.

Changes:

  • Allow pecl* channel-update pecl.php.net failures to be non-fatal across Alpine and Debian/Ubuntu setup paths.
  • Allow the final pecl update-channels step to fail without stopping the script.
  • Fix missing ;;/termination in case blocks and adjust related shell formatting for correctness.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sjinks
sjinks force-pushed the pltfrm-2570-codespaces-pecl-channel-update-is-build-critical-transient branch from c11cf51 to b64112c Compare July 27, 2026 10:45
@sjinks
sjinks force-pushed the pltfrm-2570-codespaces-pecl-channel-update-is-build-critical-transient branch from b64112c to 9236d3a Compare July 27, 2026 12:16
@sjinks
sjinks merged commit 2724e4e into trunk Jul 27, 2026
185 of 186 checks passed
@sjinks
sjinks deleted the pltfrm-2570-codespaces-pecl-channel-update-is-build-critical-transient branch July 27, 2026 13:01
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