Page MenuHomePhorge

Fix a PHP 8.1 issue related to preg_match() and null subject
ClosedPublic

Authored by valerio.bozzolan on Apr 14 2023, 14:02.
Tags
None
Referenced Files
F2194945: D25123.1716106925.diff
Sat, May 18, 08:22
F2194877: D25123.1716101885.diff
Sat, May 18, 06:58
F2194765: D25123.1716094961.diff
Sat, May 18, 05:02
Unknown Object (File)
Fri, May 10, 13:11
Unknown Object (File)
Wed, May 8, 14:51
Unknown Object (File)
Wed, May 8, 14:51
Unknown Object (File)
Wed, May 8, 14:51
Unknown Object (File)
Wed, May 8, 13:58
Tokens
"Like" token, awarded by valerio.bozzolan.

Diff Detail

Repository
rARC Arcanist
Branch
fix-deprecated-preg_match-81
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 249
Build 249: arc lint + arc unit

Unit TestsFailed

TimeTest
0 msArcanistRepositoryAPIMiscTestCase::testSVNFileEscapes
EXCEPTION (RuntimeException): Code coverage needs to be enabled in php.ini by setting 'xdebug.mode' to 'coverage' #0 [internal function]: PhutilErrorHandler::handleError(2, '...', '...', 703) #1 /var/www/arcanist/src/unit/engine/phutil/PhutilTestCase.php(703): xdebug_start_code_coverage(3)
0 msArcanistRepositoryAPIStateTestCase::testGitStateParsing
EXCEPTION (RuntimeException): Code coverage needs to be enabled in php.ini by setting 'xdebug.mode' to 'coverage' #0 [internal function]: PhutilErrorHandler::handleError(2, '...', '...', 703) #1 /var/www/arcanist/src/unit/engine/phutil/PhutilTestCase.php(703): xdebug_start_code_coverage(3)
0 msArcanistRepositoryAPIStateTestCase::testHgStateParsing
EXCEPTION (RuntimeException): Code coverage needs to be enabled in php.ini by setting 'xdebug.mode' to 'coverage' #0 [internal function]: PhutilErrorHandler::handleError(2, '...', '...', 703) #1 /var/www/arcanist/src/unit/engine/phutil/PhutilTestCase.php(703): xdebug_start_code_coverage(3)
0 msArcanistRepositoryAPIStateTestCase::testSvnStateParsing
EXCEPTION (RuntimeException): Code coverage needs to be enabled in php.ini by setting 'xdebug.mode' to 'coverage' #0 [internal function]: PhutilErrorHandler::handleError(2, '...', '...', 703) #1 /var/www/arcanist/src/unit/engine/phutil/PhutilTestCase.php(703): xdebug_start_code_coverage(3)
0 msPhutilLibraryTestCase::testEverythingImplemented
EXCEPTION (RuntimeException): Code coverage needs to be enabled in php.ini by setting 'xdebug.mode' to 'coverage' #0 [internal function]: PhutilErrorHandler::handleError(2, '...', '...', 703) #1 /var/www/arcanist/src/unit/engine/phutil/PhutilTestCase.php(703): xdebug_start_code_coverage(3)
View Full Test Results (7 Failed)

Event Timeline

valerio.bozzolan retitled this revision from Fix a PHP 8.1 issue related to preg_match() and null subject This change fixes 'arc patch' in some circumstances. to Fix a PHP 8.1 issue related to preg_match() and null subject.Apr 14 2023, 14:04
valerio.bozzolan edited the summary of this revision. (Show Details)

enable xdebug to make lint happy

Hi @Matthew - probably you will love this small and cute one that fix a PHP 8.1

Have a nice week-end

This revision is now accepted and ready to land.Apr 14 2023, 18:45