Repository navigation
Remove the track_errors directive from the PHP 8.3 and 8.4 images - #539
mangeshraut712 wants to merge 2 commits into
Conversation
The track_errors ini directive was removed in PHP 8.0. PR sclorg#458 dropped it from the 8.0, 8.1 and 8.2 images, but 8.3 and 8.4 were added later from the older template and still carry it: - s2i/bin/run exports TRACK_ERRORS (default OFF) - php.ini.template renders it to "track_errors = ${TRACK_ERRORS}" - README still documents TRACK_ERRORS as a supported variable With TRACK_ERRORS=ON in .s2i/environment the container therefore fails at startup: PHP Fatal error: Directive 'track_errors' is no longer available in PHP Reproduced with the 8.3 and 8.4 templates rendered the way s2i/bin/run does (TRACK_ERRORS=ON) and loaded by php:8.3-cli (8.3.37) and php:8.4-cli (8.4.28); both exit 1 before this change and start cleanly after it. Same change as sclorg#458, applied to 8.3 and 8.4. The whole README bullet is removed rather than only its title line, so no description is left orphaned under DISPLAY_STARTUP_ERRORS. Fixes sclorg#357 Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Pull Request validationFailed🔴 Review - Missing review from a member (1 required) Success🟢 CI - All checks have passed Triggered by Workflow Run |
The previous commit says sclorg#458 "removed only the TRACK_ERRORS title line" from the README and left its description orphaned. That is not true: the 8.0 and 8.2 READMEs on master carry no TRACK_ERRORS entry at all. The claim was read from the patch's context lines, not from the files. No file changes. The diff against master is still the removal of track_errors from 8.3 and 8.4 only. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Follow-up runtime verification on |
Problem
track_errorswas removed in PHP 8.0. #458 dropped it from the 8.0, 8.1 and 8.2 images, but the 8.3 and 8.4 images were added afterwards from the older template and still carry it:s2i/bin/runexportsTRACK_ERRORS(defaultOFF)php.ini.templaterenders it astrack_errors = ${TRACK_ERRORS}README.mdstill documentsTRACK_ERRORSas a supported variableBecause the README documents it, a user can reasonably set
TRACK_ERRORS=ONin.s2i/environment. The container then fails on startup:Fixes #357.
Change
Same change as #458, applied to 8.3 and 8.4. Pure deletion, 6 files, -38 lines:
README.mdTRACK_ERRORSbullet)root/opt/app-root/etc/php.ini.templatetrack_errorsblocks)s2i/bin/runTRACK_ERRORSexport)This matches #458's result in 8.0 and 8.2: no
TRACK_ERRORSentry remains in the README, the template orrun. (An earlier version of this description claimed #458 left orphaned README lines. That was wrong; the 8.0 and 8.2 READMEs are clean.)Verification
I rendered the 8.3 and 8.4 templates the way
s2i/bin/rundoes (substituting the environment variables, withTRACK_ERRORS=ON), then loaded each resultingphp.iniwith the official CLI images:php:8.3-cli(8.3.37)php:8.4-cli(8.4.28)Directive 'track_errors' is no longer availableAlso checked:
bash -npasses on both editeds2i/bin/runscripts; the executable bit is unchanged.TRACK_ERRORSunset) still starts, and other settings from the template still apply (display_errors=1,memory_limit=128M).php.iniare exactly the 15 deleted lines; nothing else in the file changes.Not verified
I could not run the full
container-tests.ymlsuite locally, since it builds the RHEL/UBI images on a Linux container host. The verification above uses the stockphpCLI images rather than the assembled S2I images.Made with Cursor
Summary by CodeRabbit