Fix PHP 8.1 strlen(null) error in DifferentialBranchField getBranchDescription()
Fixes T15531
Paths
| Differential D25335 Authored by Sten on Jul 5 2023, 13:32.
Tags None Referenced Files
Details
Summary Fix PHP 8.1 strlen(null) error in DifferentialBranchField getBranchDescription() Fixes T15531 Test Plan Simply viewing a diff (eg https://my.phorge.site/D1234) on a PHP 8.1 server generated the error fixed by this diff. Also created a unit test.
Diff Detail
Event TimelineHerald added subscribers: Cigaryno, Matthew, valerio.bozzolan and 2 others. · View Herald TranscriptJul 5 2023, 13:322023-07-05 13:32:16 (UTC+0) Harbormaster completed remote builds in B644: Diff 1079.Jul 5 2023, 13:322023-07-05 13:32:24 (UTC+0) valerio.bozzolan accepted this revision as: valerio.bozzolan.Jul 5 2023, 14:152023-07-05 14:15:54 (UTC+0) Comment ActionsHarbormaster completed remote builds in B647: Diff 1083.Jul 5 2023, 14:392023-07-05 14:39:40 (UTC+0) This revision is now accepted and ready to land.Jul 5 2023, 14:402023-07-05 14:40:32 (UTC+0) Closed by commit rP9d512595c0e2: Fix PHP 8.1 DifferentialBranchField getBranchDescription strlen(null) error. · Explain WhyJul 5 2023, 15:062023-07-05 15:06:38 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 1079 src/__phutil_library_map__.php
src/applications/differential/customfield/DifferentialBranchField.php
src/applications/differential/customfield/__tests__/DifferentialBranchFieldTestCase.php
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0 |