Skip to content

upgrade to custom php version - #4187

Merged
benderl merged 3 commits into
openWB:masterfrom
benderl:php
Oct 26, 2026
Merged

benderl merged 3 commits into
openWB:masterfrom
benderl:php

Conversation

@benderl

@benderl benderl commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The subshell’s error handling allows failed validation to proceed with installation and report success.

1 open issue
What changed in this PR

Adds installation of custom PHP 7.4 packages for the php2shell fix on supported Debian 11 platforms.

Changes:

  • Selects platform-specific archives for Raspbian armhf and Debian amd64.
  • Checks installed package versions to avoid reapplying the fix.
  • Adds checksum validation, package installation, Apache restart handling, and temporary-file cleanup.
File Description
runs/​install_packages.sh Adds the platform-specific PHP 7.4 upgrade procedure.

Review effort: Balanced

Comment thread runs/install_packages.sh Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Package-state detection needs correction, and system PHP replacement and Apache recovery require human validation on both supported platforms.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Verify all required PHP packages before skipping the fix

runs/​install_packages.sh:38

Missing or unconfigured PHP packages are treated as if the fix were already applied: dpkg-query can omit missing packages, and the installed filter ignores all other states, leaving needed at zero. Since the preceding package installation does not abort on failure, an incomplete installation can skip the repair, print “already applied,” and exit successfully. Require all three packages to be installed with the custom version before skipping the fix.

1 resolved since last review

Review effort: Balanced

@benderl
benderl requested a review from LKuemmel October 26, 2026 09:23
@benderl benderl added this to the 2.3.0 milestone Oct 26, 2026
@benderl benderl added the dependencies Pull requests that update a dependency file label Oct 26, 2026
@benderl
benderl removed the request for review from LKuemmel October 26, 2026 11:07
@benderl
benderl merged commit 79debed into openWB:master Oct 26, 2026
1 check passed
@benderl
benderl deleted the php branch October 26, 2026 11:22
benderl added a commit that referenced this pull request Oct 26, 2026
* upgrade to custom php version

* add php version to software info
benderl added a commit that referenced this pull request Oct 27, 2026
* upgrade to custom php version

* add php version to software info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants