File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
2020* This component no longer supports PHPDBG
2121* This component no longer supports Xdebug 2
2222
23+ ## [ 9.2.23] - 2022-MM-DD
24+
25+ ### Fixed
26+
27+ * [ #971 ] ( https://github.com/sebastianbergmann/php-code-coverage/issues/971 ) : PHP report does not handle serialized code coverage data larger than 2 GB
28+
2329## [ 9.2.22] - 2022-12-18
2430
2531### Fixed
@@ -470,6 +476,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
470476* This component is no longer supported on PHP 7.1
471477
472478[ 10.0.0 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2...main
479+ [ 9.2.23 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.22...9.2
473480[ 9.2.22 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.21...9.2.22
474481[ 9.2.21 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.20...9.2.21
475482[ 9.2.20 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.19...9.2.20
Original file line number Diff line number Diff line change 1212use function dirname ;
1313use function file_put_contents ;
1414use function serialize ;
15- use function sprintf ;
1615use SebastianBergmann \CodeCoverage \CodeCoverage ;
1716use SebastianBergmann \CodeCoverage \Driver \WriteOperationFailedException ;
1817use SebastianBergmann \CodeCoverage \Util \Filesystem ;
@@ -21,14 +20,8 @@ final class PHP
2120{
2221 public function process (CodeCoverage $ coverage , ?string $ target = null ): string
2322 {
24- $ buffer = sprintf (
25- "<?php
26- return \u nserialize(<<<'END_OF_COVERAGE_SERIALIZATION'%s%s%sEND_OF_COVERAGE_SERIALIZATION%s); " ,
27- PHP_EOL ,
28- serialize ($ coverage ),
29- PHP_EOL ,
30- PHP_EOL
31- );
23+ $ buffer = "<?php
24+ return \u nserialize(<<<'END_OF_COVERAGE_SERIALIZATION' " . PHP_EOL . serialize ($ coverage ) . PHP_EOL . 'END_OF_COVERAGE_SERIALIZATION ' . PHP_EOL . '); ' ;
3225
3326 if ($ target !== null ) {
3427 Filesystem::createDirectory (dirname ($ target ));
You can’t perform that action at this time.
0 commit comments