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.
Tags
None
Referenced Files
F3298161: D25397.1742998054.diff
Tue, Mar 25, 14:07
F3291776: D25397.1742881792.diff
Mon, Mar 24, 05:49
F3280482: D25397.1742652859.diff
Fri, Mar 21, 14:14
F3250984: D25397.1742331658.diff
Mon, Mar 17, 21:00
F3225070: D25397.1742090349.diff
Sat, Mar 15, 01:59
F3220800: D25397.1741813133.diff
Tue, Mar 11, 20:58
F3220799: D25397.1741813132.diff
Tue, Mar 11, 20:58
F3220798: D25397.1741813131.diff
Tue, Mar 11, 20:58

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)