Page MenuHomePhorge

Fix a PHP 8.1/8.2 deprecated use of strlen a NULL argument
ClosedPublic

Authored by bob on Aug 17 2023, 08:53.
Tags
None
Referenced Files
F2940442: D25401.1738070292.diff
Mon, Jan 27, 13:18
F2940405: D25401.1738065590.diff
Mon, Jan 27, 11:59
F2938312: D25401.1737994145.diff
Sun, Jan 26, 16:09
F2936351: D25401.1737915228.diff
Sat, Jan 25, 18:13
F2933437: D25401.1737768236.diff
Fri, Jan 24, 01:23
F2933271: D25401.1737758275.diff
Thu, Jan 23, 22:37
F2929261: D25401.1737654636.diff
Wed, Jan 22, 17:50
F2928630: D25401.1737652127.diff
Wed, Jan 22, 17:08

Details

Summary

This commit harmonizes PhabricatorNotificationServerRef's getURI and getWebsocketURI methods as discussed in D25382.

Test Plan

This is hard to say since I didn't know how/when this function might be called.

Diff Detail

Repository
rP Phorge
Branch
tmp
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 771
Build 771: arc lint + arc unit

Event Timeline

bob requested review of this revision.Aug 17 2023, 08:53

Thanks bob! You are a good minion. As discussed previously, this is used only in one point and without any argument:

$ grep -R '>getWebsocketURI' .
./src/view/page/PhabricatorStandardPageView.php:        $client_uri = $server->getWebsocketURI();

So this change seems perfectly legitimate to me. Thanks for this fix!

This revision is now accepted and ready to land.Aug 18 2023, 07:16