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
F3294549: D25401.1742937833.diff
Mon, Mar 24, 21:23
F3225076: D25401.1742090360.diff
Sat, Mar 15, 01:59
F3220048: D25401.1741800324.diff
Tue, Mar 11, 17:25
F3220047: D25401.1741800323.diff
Tue, Mar 11, 17:25
F3220046: D25401.1741800322.diff
Tue, Mar 11, 17:25
F3219694: D25401.1741758782.diff
Tue, Mar 11, 05:53
F3216809: D25401.1741716439.diff
Mon, Mar 10, 18:07
F2997040: D25401.1740390818.diff
Feb 23 2025, 09:53

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