Page MenuHomePhorge

PHP 8.2 "preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated" in diffusion
Closed, ResolvedPublic

Description

If you try to browse a subversion repository, you get a RuntimeException. The stacktrace is available below :

PHP message: [2023-08-16 14:52:47] EXCEPTION: (RuntimeException) preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]; 
PHP message: arcanist(head=master, ref.master=df6c315ace5f), phorge(head=master, ref.master=9fa9aa30b940); 
PHP message:   #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at [<arcanist>/src/error/PhutilErrorHandler.php:261]; 
PHP message:   #1 <#2> preg_match(string, NULL) called at [<phorge>/src/applications/diffusion/request/DiffusionSvnRequest.php:6]; 
PHP message:   #2 <#2> DiffusionSvnRequest::isStableCommit(NULL) called at [<phorge>/src/applications/diffusion/request/DiffusionRequest.php:342]; 
PHP message:   #3 <#2> DiffusionRequest::getStableCommit() called at [<phorge>/src/applications/diffusion/request/DiffusionRequest.php:272]; 
PHP message:   #4 <#2> DiffusionRequest::getCommit() called at [<phorge>/src/applications/diffusion/controller/DiffusionRepositoryController.php:189]; 
HP message:   #5 <#2> DiffusionRepositoryController::buildNormalContent(DiffusionSvnRequest) called at [<phorge>/src/applications/diffusion/controller/DiffusionRepositoryController.php:101]; 
PHP message:   #6 <#2> DiffusionRepositoryController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]; 
PHP message:   #7 phlog(RuntimeException) called at [<phorge>/src/aphront/handler/PhabricatorDefaultRequestExceptionHandler.php:41]; 
PHP message:   #8 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:751]; 
PHP message:   #9 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:296];

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.