Page MenuHomePhorge

Fix PHP 8.1 and 8.2 incompatibilities mostly
AbandonedPublic

Authored by MacFan4000 on Dec 7 2021, 14:09.
Referenced Files
Unknown Object (File)
Mon, Mar 25, 07:49
Unknown Object (File)
Mon, Mar 25, 07:49
Unknown Object (File)
Mon, Mar 25, 07:45
Unknown Object (File)
Mon, Mar 25, 07:16
Unknown Object (File)
Mon, Mar 25, 06:47
Unknown Object (File)
Mon, Mar 25, 06:16
Unknown Object (File)
Sun, Mar 24, 05:28
Unknown Object (File)
Wed, Mar 20, 09:46

Details

Summary

This fixes most issues with php 8.1. Some issues still linger that I was unable to fix. Part of T15064.

Test Plan

Used php linting, tested in browser, checked error logs, etc

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Ekubischta subscribed.

Just a warning that I found a few bugs just by spot checking...

I think that this revision should be abandoned

  1. It is impossible to test
  2. Should we be suppressing "null to string" errors with "@" ? (The issue here is that the built in strlen function does not accept null)

I think a better approach would be to

  • Write a replacement global function called phorge_strlen
  • Replace all strlen functions with our new function

Repeat for any other functions that we feel have this issue

src/console/grid/ArcanistGridView.php
158

Find and Replace bug

src/console/view/PhutilConsoleList.php
45

Find and Replace bug

src/console/view/PhutilConsoleTable.php
82

Find and Replace bug

228

Find and Replace bug

236

Find and Replace bug

This revision now requires changes to proceed.Nov 11 2022, 16:09
valerio.bozzolan retitled this revision from Fix PHP 8.1 incompatibilities mostly to Fix PHP 8.1 and 8.2 incompatibilities mostly.Mar 26 2023, 15:08