Page MenuHomePhorge

Fix strlen(null) in DifferentialChangesetViewController loadCoverage()
ClosedPublic

Authored by Sten on Jul 4 2023, 14:19.
Tags
None
Referenced Files
F2948637: D25328.1738586880.diff
Sun, Feb 2, 12:48
F2931071: D25328.1737691479.diff
Thu, Jan 23, 04:04
F2931044: D25328.1737690849.diff
Thu, Jan 23, 03:54
F2931043: D25328.1737690848.diff
Thu, Jan 23, 03:54
F2931040: D25328.1737690822.diff
Thu, Jan 23, 03:53
F2902893: D25328.1737316821.diff
Sat, Jan 18, 20:00
F2901309: D25328.1737275510.diff
Sat, Jan 18, 08:31
F2874430: D25328.1736950897.diff
Tue, Jan 14, 14:21

Details

Summary

DifferentialChangesetViewController loadCoverage() fails under PHP 8.1 when test coverage is provided for some but not all modified files.

Update the code to replace strlen() with phutil_nonempty_string().

Fixes T15521

Test Plan

View a diff with test coverage for some but not all files.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable