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
F3980790: D25401.1746543358.diff
Mon, May 5, 14:55
F3980789: D25401.1746543302.diff
Mon, May 5, 14:55
F3980788: D25401.1746543282.diff
Mon, May 5, 14:54
F3946179: D25401.1746446502.diff
Sun, May 4, 12:01
F3851241: D25401.1746115969.diff
Wed, Apr 30, 16:12
F3851240: D25401.1746115968.diff
Wed, Apr 30, 16:12
F3851239: D25401.1746115967.diff
Wed, Apr 30, 16:12
F3789305: D25401.1745916640.diff
Mon, Apr 28, 08:50

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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