Page MenuHomePhabricator

Correct a PHP8 compatibility issue when running "arc diff" with no active branch
ClosedPublic

Authored by epriestley on Feb 4 2023, 1:03 PM.
Tags
None
Referenced Files
F18710534: D21856.diff
Mon, Sep 29, 2:16 AM
F18595510: D21856.id.diff
Fri, Sep 12, 9:58 PM
F18594322: D21856.diff
Fri, Sep 12, 5:48 PM
F18559067: D21856.diff
Mon, Sep 8, 9:47 PM
F18514452: D21856.id.diff
Fri, Sep 5, 10:14 AM
F18466503: D21856.diff
Tue, Sep 2, 10:08 AM
F18371667: D21856.diff
Aug 28 2025, 5:31 AM
F18365977: D21856.id52092.diff
Aug 27 2025, 9:42 PM
Subscribers
None

Details

Summary

Ref T13588. See PHI2228. When there is no active branch name (for example, because you are in Git on a detached HEAD), this section currently fails under PHP8 when we try to strlen(null).

Test Plan

Under PHP 8.1: ran git checkout <hash of head>, then arc diff to generate this revision.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Feb 4 2023, 1:16 PM
This revision was automatically updated to reflect the committed changes.