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
F3586698: D25401.1745135611.diff
Sat, Apr 19, 07:53
F3577623: D25401.1745088127.diff
Fri, Apr 18, 18:42
F3535465: D25401.1744894183.diff
Wed, Apr 16, 12:49
F3502226: D25401.1744796108.diff
Tue, Apr 15, 09:35
F3389605: D25401.1744459431.diff
Fri, Apr 11, 12:03
F3376482: D25401.1744324562.diff
Wed, Apr 9, 22:36
F3371847: D25401.1744246356.diff
Wed, Apr 9, 00:52
F3371228: D25401.1744239742.diff
Tue, Apr 8, 23:02

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