From d25b7e85dfdf3727e62d0cdbaa0ad7971bd440f2 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 22 Dec 2022 08:43:03 +0100 Subject: [PATCH] Closes #971 --- .psalm/baseline.xml | 12 ------------ ChangeLog.md | 7 +++++++ src/Report/PHP.php | 11 ++--------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.psalm/baseline.xml b/.psalm/baseline.xml index ef63b4547..7c12602fc 100644 --- a/.psalm/baseline.xml +++ b/.psalm/baseline.xml @@ -27,18 +27,6 @@ include_once $uncoveredFile - - - inclusive - - - clear() - collect(inclusive, $filesToCollectCoverageFor) - start() - stop() - waiting() - - XDEBUG_CC_BRANCH_CHECK diff --git a/ChangeLog.md b/ChangeLog.md index aa6bd4e3e..1af4c5027 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -2,6 +2,12 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## [9.2.23] - 2022-MM-DD + +### Fixed + +* [#971](https://github.com/sebastianbergmann/php-code-coverage/issues/971): PHP report does not handle serialized code coverage data larger than 2 GB + ## [9.2.22] - 2022-12-18 ### Fixed @@ -451,6 +457,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt * This component is no longer supported on PHP 7.1 +[9.2.23]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.22...9.2 [9.2.22]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.21...9.2.22 [9.2.21]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.20...9.2.21 [9.2.20]: https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.19...9.2.20 diff --git a/src/Report/PHP.php b/src/Report/PHP.php index d16b1b84f..ccb104ce5 100644 --- a/src/Report/PHP.php +++ b/src/Report/PHP.php @@ -12,7 +12,6 @@ use function dirname; use function file_put_contents; use function serialize; -use function sprintf; use SebastianBergmann\CodeCoverage\CodeCoverage; use SebastianBergmann\CodeCoverage\Driver\WriteOperationFailedException; use SebastianBergmann\CodeCoverage\Util\Filesystem; @@ -21,14 +20,8 @@ final class PHP { public function process(CodeCoverage $coverage, ?string $target = null): string { - $buffer = sprintf( - "