Page MenuHomePhorge

PHP 8.1 bug reports from mturdus
Open, HighPublic

Description

This is an attempt to organize the kind bug report from mturdus:

PhabricatorWebServerSetupCheck

EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at 
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=827f63a06543, custom=1)
#0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at 
#1 <#2> PhabricatorWebServerSetupCheck::executeChecks() called at 
#2 <#2> PhabricatorSetupCheck::runSetupChecks() called at 
#3 <#2> PhabricatorSetupCheck::runNormalChecks() called at 
#4 <#2> PhabricatorSetupEngine::execute() called at 
#5 <#2> PhabricatorSetupCheck::willProcessRequest() called at 
#6 <#2> AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at 
#7 phlog(RuntimeException) called at 
#8 AphrontUnhandledExceptionResponse::setException(RuntimeException) called at

PhabricatorFileLightboxController

EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at 
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=6f4d974ab8f6, custom=1)
#0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at 
#1 <#2> PhabricatorFileLightboxController::handleRequest(AphrontRequest) called at 
#2 phlog(RuntimeException) called at 
#3 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at 
#4 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at 
#5 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at 
#6 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at

PhabricatorConfigDatabaseStatusController

EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at 
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=421e37beec7b, custom=1)
#0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at 
#1 <#2> PhabricatorConfigDatabaseStatusController::getURI(array) called at 
#2 <#2> PhabricatorConfigDatabaseStatusController::renderServers(array, array, array) called at 
#3 <#2> PhabricatorConfigDatabaseStatusController::handleRequest(AphrontRequest) called at 
#4 phlog(RuntimeException) called at 
#5 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at 
#6 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at 
#7 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at 
#8 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at

PhabricatorDocumentRenderingEngine

EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at 
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=421e37beec7b, custom=1)
#0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at 
#1 <#2> PhabricatorDocumentRenderingEngine::newRenderResponse(PhabricatorDocumentRef) called at 
#2 <#2> PhabricatorFileDocumentController::handleRequest(AphrontRequest) called at 
#3 phlog(RuntimeException) called at 
#4 PhabricatorAjaxRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at 
#5 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at 
#6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at 
#7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at
EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at 
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=421e37beec7b, custom=1)
#0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at 
#1 <#2> PhabricatorDocumentRenderingEngine::newRenderResponse(PhabricatorDocumentRef) called at 
#2 <#2> PhabricatorFileDocumentController::handleRequest(AphrontRequest) called at 
#3 phlog(RuntimeException) called at 
#4 PhabricatorAjaxRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at 
#5 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at 
#6 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at 
#7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at

PhabricatorMailManagementSendTestWorkflow

EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at 
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=421e37beec7b, custom=1)
  #0 PhutilErrorHandler::handleError(integer, string, string, integer) called at 
  #1 PhabricatorMailManagementSendTestWorkflow::execute(PhutilArgumentParser) called at 
  #2 PhutilArgumentParser::parseWorkflowsFull(array) called at 
  #3 PhutilArgumentParser::parseWorkflows(array) called at

PhabricatorRepository

Pull of 'R4' failed:

#0 /opt/phorge/phorge/src/applications/repository/storage/PhabricatorRepository.php(1163): PhutilErrorHandler::handleError(8192, '...', '...', 1163)
#1 /opt/phorge/phorge/src/applications/repository/storage/PhabricatorRepository.php(523): PhabricatorRepository->getRemoteURIObject()
#2 /opt/phorge/phorge/src/applications/repository/storage/PhabricatorRepository.php(509): PhabricatorRepository->newRemoteCommandEngine(Array)
#3 /opt/phorge/phorge/src/applications/repository/storage/PhabricatorRepository.php(495): PhabricatorRepository->newRemoteCommandFuture(Array)
#4 /opt/phorge/phorge/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php(266): PhabricatorRepository->execxRemoteCommand('...', '...')
#5 /opt/phorge/phorge/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php(112): PhabricatorRepositoryPullEngine->executeGitCreate()
#6 /opt/phorge/phorge/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php(40): PhabricatorRepositoryPullEngine->pullRepositoryWithLock()
#7 /opt/phorge/phorge/src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php(59): PhabricatorRepositoryPullEngine->pullRepository()
#8 /opt/phorge/arcanist/src/parser/argument/PhutilArgumentParser.php(492): PhabricatorRepositoryManagementUpdateWorkflow->execute(Object(PhutilArgumentParser))
#9 /opt/phorge/arcanist/src/parser/argument/PhutilArgumentParser.php(377): PhutilArgumentParser->parseWorkflowsFull(Array)
#10 /opt/phorge/phorge/scripts/repository/manage_repositories.php(22): PhutilArgumentParser->parseWorkflows(Array)
#11 {main}

PhabricatorRepositoryURI

EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at 
arcanist(head=master, ref.master=0e32dbc1ac8f), phorge(head=master, ref.master=421e37beec7b, custom=1)
#0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer) called at 
#1 <#2> PhabricatorRepositoryURI::getURINormalizerDomainMap() called at 
#2 <#2> PhabricatorRepositoryURI::getNormalizedURI() called at 
#3 <#2> PhabricatorRepository::updateURIIndex() called at 
#4 <#2> DiffusionURIEditor::applyFinalEffects(PhabricatorRepositoryURI, array) called at 
#5 <#2> PhabricatorApplicationTransactionEditor::applyTransactions(PhabricatorRepositoryURI, array) called at 
#6 <#2> PhabricatorEditEngine::buildEditResponse(PhabricatorRepositoryURI) called at 
#7 <#2> PhabricatorEditEngine::buildResponse() called at 
#8 <#2> DiffusionRepositoryURIEditController::handleRequest(AphrontRequest) called at 
#9 phlog(RuntimeException) called at 
#10 PhabricatorDefaultRequestExceptionHandler::handleRequestThrowable(AphrontRequest, RuntimeException) called at 
#11 AphrontApplicationConfiguration::handleThrowable(RuntimeException) called at 
#12 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at 
#13 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at

Also

I was also unable to reproduce these 2:

  • src/applications/diffusion/request/DiffusionGitRequest.php
  • src/applications/people/mail/PhabricatorPeopleEmailLoginMailEngine.php

The fix for src/applications/search/controller/PhabricatorSearchController.php does not generate a stack trace in the httpd error_log.

If I undo the fix, I'm not able to search for words anymore

Revisions and Commits