Page MenuHomePhorge

Fix a PHP 8.1 deprecated use of preg_match with a NULL argument
ClosedPublic

Authored by bob on Aug 16 2023, 15:15.

Details

Summary

These calls are preventing users to browse subversion/mercurial repositories in PHP 8.1+.
Indeed, a similar bug affecting git repositories was already addressed in another commit
(rP6b8ec50148909938850b5acfd11725ae23a8e31b). This commit harmonize both DiffusionSvnRequest
and DiffusionMercurialRequest with DiffusionGitRequest

Fix T15607

Test Plan
  • Sign in
  • Open a diffusion SVN/Mercurial repository
  • You should not get a RuntimeException concerning this preg_match call

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bob requested review of this revision.Aug 16 2023, 15:15

I removed another diff's modification included by Arcanist (there is definitely something about arc command that I'm missing...)

Sten subscribed.

Looks safe and sensible.

This revision is now accepted and ready to land.Aug 17 2023, 08:00
valerio.bozzolan retitled this revision from Fix a PHP 8.1/8.2 deprecated use of preg_match with a NULL argument to Fix a PHP 8.1 deprecated use of preg_match with a NULL argument.Aug 17 2023, 08:00
valerio.bozzolan edited the summary of this revision. (Show Details)