Learn about Centmin Mod LEMP Stack today
Become a Member

Stable Branch fix NEWS-only PHP backport patch rejects reported as failed in 132.00…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 21, 2026 at 3:54 PM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,588
    12,631
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,298
    Local Time:
    10:44 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix NEWS-only PHP backport patch rejects reported as failed in 132.00stable

    PHP 7.2, 7.3, 7.4, 8.0 and 8.1 builds printed "Patching failed for bug #<id>"
    when a backport patch rejected only its NEWS hunk. The code hunks were applied
    and the build carried on, but install logs and CI read the line as a failed
    security patch. Every PHP 7.4, 8.0 and 8.1 install has shown it for the
    from-8.2.36-to-<ver> bundle since the 19 Nov security release.

    Changes:
    - inc/php_patch.inc: add php_patch_news_only_reject() from 141.00beta01. It
    accepts a failed patch only when patch exited 1, NEWS.rej is the only reject
    and no hunk was skipped or reversed
    - inc/php_patch.inc: the PHP 7.2, 7.3, 7.4, 8.0 and 8.1 backport loops now
    print "NEWS-only reject for bug #<id>: code hunks applied, keeping original
    NEWS" for such a patch and restore NEWS. Any other reject still prints
    "Patching failed" and restores the rejected files as before
    - the patch lists and the patched PHP source are unchanged
    - PHP 7.3.33 still prints "Patching failed" for bug #81026, which 7.3.32+
    already includes, and for cve-2026-6735 and from-8.2.36-to-7.3, which touch
    FPM files that the skipped 81026 patch leaves .rej files for. Their code
    hunks still apply

    Continue reading...


    132.00stable branch