File tree Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change 2727 <code >include_once $uncoveredFile</code >
2828 </UnresolvableInclude >
2929 </file >
30- <file src =" src/Driver/PcovDriver.php" >
31- <UndefinedConstant occurrences =" 1" >
32- <code >inclusive</code >
33- </UndefinedConstant >
34- <UndefinedFunction occurrences =" 5" >
35- <code >clear()</code >
36- <code >collect(inclusive, $filesToCollectCoverageFor)</code >
37- <code >start()</code >
38- <code >stop()</code >
39- <code >waiting()</code >
40- </UndefinedFunction >
41- </file >
4230 <file src =" src/Driver/Xdebug2Driver.php" >
4331 <UndefinedConstant occurrences =" 3" >
4432 <code >XDEBUG_CC_BRANCH_CHECK</code >
Original file line number Diff line number Diff line change 22
33All notable changes are documented in this file using the [ Keep a CHANGELOG] ( http://keepachangelog.com/ ) principles.
44
5+ ## [ 9.2.23] - 2022-MM-DD
6+
7+ ### Fixed
8+
9+ * [ #971 ] ( https://github.com/sebastianbergmann/php-code-coverage/issues/971 ) : PHP report does not handle serialized code coverage data larger than 2 GB
10+
511## [ 9.2.22] - 2022-12-18
612
713### Fixed
@@ -451,6 +457,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt
451457
452458* This component is no longer supported on PHP 7.1
453459
460+ [ 9.2.23 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.22...9.2
454461[ 9.2.22 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.21...9.2.22
455462[ 9.2.21 ] : https://github.com/sebastianbergmann/php-code-coverage/compare/9.2.20...9.2.21
456463[ 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