fix(php-update): remove underscore prefixes, fix multi-version summary messages - #227
Merged
Merged
Conversation
…i-version summary messages Agent-Logs-Url: https://github.com/EngineScript/EngineScript/sessions/8362710e-d6fe-4a08-b69d-90fb9d3b4168 Co-authored-by: PDowney <11467177+PDowney@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Rename variable for consistency in php-update.sh
fix(php-update): remove underscore prefixes, fix multi-version summary messages
May 2, 2026
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
|
PDowney
approved these changes
May 2, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates scripts/update/php-update.sh, the PHP migration script used by EngineScript’s server-maintenance workflow, to make multi-version upgrade reporting more accurate and to normalize some variable names.
Changes:
- Renames the associative-array tracking variable used during old PHP version detection for consistency.
- Renames loop variables in the config migration sections to match the rest of the script.
- Updates the final upgrade summary so it reports all migrated/removed source PHP versions instead of only a single legacy variable.
Comment on lines
+241
to
+245
| if [[ ${#MIGRATION_SOURCE_PHP_VERS[@]} -gt 0 ]]; then | ||
| echo " - Removed PHP version(s): ${MIGRATION_SOURCE_PHP_VERS[*]}" | ||
| else | ||
| echo " - Removed PHP ${OLD_PHP_VER} installation" | ||
| fi |
| echo "=============================================================" | ||
| echo "" | ||
| echo "PHP upgrade from ${OLD_PHP_VER} to ${NEW_PHP_VER} completed successfully." | ||
| echo "PHP upgrade from ${MIGRATION_SOURCE_PHP_VERS[*]} to ${NEW_PHP_VER} completed successfully." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Software Version Updates
Variable naming inconsistencies and inaccurate summary messages in
scripts/update/php-update.shwhen multiple old PHP versions are detected.Changed Versions
scripts/update/php-update.sh_SEEN_OLD_PHP_VERS→SEEN_OLD_PHP_VERS— leading underscore was inconsistent withOLD_PHP_VERS/NEW_PHP_VERconvention_OLD_VER→OLD_VERin all four config-update loops (nginxphp-fpm.conf, per-site configs, phpSysInfo, admin control panel API) — aligns with the removal loop that already usedOLD_VER${MIGRATION_SOURCE_PHP_VERS[*]}instead of${OLD_PHP_VER}— single-version reference was misleading when multiple old versions were migrated${MIGRATION_SOURCE_PHP_VERS[*]}; falls back to single-version text only when the array is emptyVersion Diff
Verification Checklist
Notes
This is an automated pull request created by the software version checker workflow.
Please verify these versions are stable releases before merging.
Original prompt