Repository navigation
Support PHP 8.6 - #4
Merged
Merged
Conversation
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.
Support stable Linux non-thread-safe (NTS) PHP 8.6 while retaining PHP 8.3–8.5 compatibility (
v2.1.4), without changing the binary coverage record or manifest format.Behavioral Contract & Key Changes
pcov.c,pcov_request_cache.h,config.m4,composer.json):INI_INT,INI_BOOL,INI_STR) withzend_ini_long(ZEND_STRL(...), 0)andzend_ini_string_ex(ZEND_STRL(...), 0, NULL)(using compile-time string lengths with zero hot-path overhead).const char *signatures anduint32_tzend_cfg.blocks_countiteration for clean-Wall -Wextra -Werrorbuilds across PHP 8.3–8.6.#ifndef ZTSinpcov_request_cache.hso ZTS builds compile cleanly while continuing to bypass the NTS-only mutable worker cache.-1uncovered /1covered collection semantics, fail-closed manifest validation, atomic export publication, and existing record compatibility.ci.yml,tests/045.phpt–047.phpt,tests/php86_partial.phpt):linux-ntsCI container tophp:8.6-nts(docker-library/phpswitchedphp:8.6-clito ZTS by default in 8.6) and assert!PHP_ZTSin CI so NTS coverage guarantees cannot silently run against a ZTS runtime.PHP_ZTSSKIPIFguards to the NTS-only native worker request-cache tests (tests/045.phpt–tests/047.phpt).tests/php86_partial.phptcovering PHP 8.6 partial function application (?/...placeholders) acrosspcov\collect()and manifest-backedpcov\export().Validation & Performance Checks
CFLAGS="-O2 -Wall -Wextra -Werror"):8.3,8.4,8.5, and8.6(41 passed, 0 failedonphp:8.6-nts, including045.phpt–047.phptandphp86_partial.phpt).php:8.6-cli(ZTS) builds cleanly under-Werrorand skips045.phpt–047.phpt(skip NTS required).develop2.1.3vs PR2.1.4): identicalcoverage_hash,wall_msmedian667.67 ms(2.1.3) vs668.26 ms(2.1.4),export_msmedian6.58 msvs6.57 ms,merge_msmedian16.97 msvs17.01 ms,max_rss_kbmedian56,192 KBvs56,192 KB(no degradation).benchmark/large-codebase/run.php): identicalcoverage_hash,exportmedian7.38 msinlarge-codebasemode vs85.73 msinofficialcollect+serialize mode (11.6xfaster export,-25.5%output bytes).pcov.request_magento_cache=1, 150 warm requests): warm cache-hitpcov\export()median23.83 µson PHP 8.5 (2.1.3),23.83 µson PHP 8.5 (2.1.4), and23.96 µson PHP 8.6.0 NTS (2.1.4).tests/031.phptskips whenpcntlis not enabled in the stock Docker CLI images.benchmark/magento/run.py) was not run against a live Magento 2 + PHP 8.6 stack.PHP 8.6 release notes