Page MenuHomePhorge

PHP 8.1 "strlen(null)" exception in Diviner when PHPDoc has no @task block
Closed, ResolvedPublic

Description

  1. PHP 8.3.8, Phorge at 10cb2521630aa333b76ff35634b14a793db85f79
  2. Run ./bin/diviner generate
  3. Go to http://phorge.localhost/book/contrib/article/rendering_html/ and click on a link to http://phorge.localhost/diviner/find/?name=PhutilSafeHTML&type=class&jump=1 (a class which has zero PHPDoc @task blocks)
[2024-06-10 23:03:29] ERROR 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [/var/www/html/phorge/phorge/src/applications/diviner/controller/DivinerAtomController.php:440]
arcanist(head=master, ref.master=6250296648fa), ava(head=wmf/stable, ref.master=d3f5a1c67bb4, ref.wmf/stable=0b414fb56fe3), phorge(head=diviner404arc, ref.master=10cb2521630a, ref.diviner404arc=10cb2521630a), translations(head=wmf/stable, ref.master=09fe573a932a, ref.wmf/stable=c81eb9d9e8d9)
  #0 DivinerAtomController::composeTasks(DivinerLiveSymbol) called at [<phorge>/src/applications/diviner/controller/DivinerAtomController.php:132]
  #1 DivinerAtomController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #2 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #3 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.