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
F2178236: D25123.diff
Sat, May 4, 16:05
Unknown Object (File)
Thu, May 2, 09:52
Unknown Object (File)
Tue, Apr 30, 16:58
Unknown Object (File)
Mon, Apr 29, 19:43
Unknown Object (File)
Mon, Apr 29, 19:43
Unknown Object (File)
Sun, Apr 28, 09:58
Unknown Object (File)
Thu, Apr 25, 14:54
Unknown Object (File)
Thu, Apr 25, 14:54
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