Page MenuHomePhorge

PHP 8.1 "strncmp(null)" exception in transaction log for policy changes
Open, Needs TriagePublic

Description

  1. PHP 8.4
  2. Have phd daemons running
  3. Run echo '{"title":"title", "description":"description", "priority":"50", "viewPolicy":"users", "editPolicy":"users"}' | /var/www/html/phorge/arcanist/bin/arc call-conduit --conduit-uri http://phorge.localhost --conduit-token "cli-xxxxx" maniphest.createtask --
  4. Go to http://phorge.localhost/feed/transactions/query/advanced/
  5. Click Search button
[2025-05-25 10:55:43] ERROR 8192: strncmp(): Passing null to parameter #1 ($string1) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/policy/query/PhabricatorPolicyQuery.php:314]
arcanist(head=master, ref.master=c58c780b47ef), ava(head=wmf/stable, ref.master=d3f5a1c67bb4, ref.wmf/stable=0b414fb56fe3), phorge(head=master, ref.master=555e569ff8c4), wmf-ext-misc()
  #0 strncmp(NULL, string, integer) called at [<phorge>/src/applications/policy/query/PhabricatorPolicyQuery.php:314]
  #1 PhabricatorPolicyQuery::isObjectPolicy(NULL) called at [<phorge>/src/applications/policy/query/PhabricatorPolicyQuery.php:318]
  #2 PhabricatorPolicyQuery::getObjectPolicy(NULL) called at [<phorge>/src/applications/policy/storage/PhabricatorPolicy.php:57]
  #3 PhabricatorPolicy::newFromPolicyAndHandle(NULL, NULL) called at [<phorge>/src/applications/transactions/storage/PhabricatorApplicationTransaction.php:458]
  #4 PhabricatorApplicationTransaction::renderPolicyName(NULL, string) called at [<phorge>/src/applications/transactions/storage/PhabricatorApplicationTransaction.php:979]
  #5 PhabricatorApplicationTransaction::getTitle() called at [<phorge>/src/applications/transactions/storage/PhabricatorModularTransaction.php:132]
  #6 PhabricatorModularTransaction::getTitle() called at [<phorge>/src/applications/maniphest/storage/ManiphestTransaction.php:135]
  #7 ManiphestTransaction::getTitle() called at [<phorge>/src/applications/feed/query/PhabricatorFeedTransactionSearchEngine.php:121]
  #8 PhabricatorFeedTransactionSearchEngine::renderResultList(array, PhabricatorSavedQuery, PhabricatorHandleList) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:1083]
  #9 PhabricatorApplicationSearchEngine::renderResults(array, PhabricatorSavedQuery) called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:275]
  #10 PhabricatorApplicationSearchController::processSearchRequest() called at [<phorge>/src/applications/search/controller/PhabricatorApplicationSearchController.php:91]
  #11 PhabricatorApplicationSearchController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #12 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/AphrontController.php:71]
  #13 AphrontController::delegateToController(PhabricatorApplicationSearchController) called at [<phorge>/src/applications/search/engine/PhabricatorApplicationSearchEngine.php:51]
  #14 PhabricatorApplicationSearchEngine::buildResponse() called at [<phorge>/src/applications/feed/controller/PhabricatorFeedTransactionListController.php:13]
  #15 PhabricatorFeedTransactionListController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #16 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #17 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]

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.