Page MenuHomePhorge

PHP 8.1 ctype_digit/preg_split exceptions in AphrontFormDateControlValue for no date/time
Closed, ResolvedPublic

Description

  1. PHP 8.3.17
  2. /var/www/html/phorge/phorge/bin/config set phabricator.show-prototypes true
  3. Enable http://phorge.localhost/applications/view/PhabricatorPhrequentApplication/
  4. Go to http://phorge.localhost/T1
  5. Click "Start Tracking Time" in the sidebar
  6. Remove both date and time
  7. Click "Start Timer" button
[2025-02-13 19:46:10] ERROR 8192: ctype_digit(): Argument of type null will be interpreted as string in the future at [/var/www/html/phorge/phorge/src/view/form/control/AphrontFormDateControlValue.php:332]
arcanist(head=rmUnusedProperties, ref.master=ec68f53ba2d6, ref.rmUnusedProperties=8028b3e25240), phorge(head=master, ref.master=90d26167aad5)
  #0 ctype_digit(NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:332]
  #1 AphrontFormDateControlValue::getStandardDateFormat(NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:219]
  #2 AphrontFormDateControlValue::newDateTime(NULL, NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:201]
  #3 AphrontFormDateControlValue::getFormattedDateFromDate(NULL, NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:80]
  #4 AphrontFormDateControlValue::newFromRequest(AphrontRequest, string) called at [<phorge>/src/applications/phrequent/controller/PhrequentTrackController.php:70]
  #5 PhrequentTrackController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #6 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #7 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #8 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phorge>/webroot/index.php:35]
[2025-02-13 19:46:10] ERROR 8192: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated at [/var/www/html/phorge/phorge/src/view/form/control/AphrontFormDateControlValue.php:337]
arcanist(head=rmUnusedProperties, ref.master=ec68f53ba2d6, ref.rmUnusedProperties=8028b3e25240), phorge(head=master, ref.master=90d26167aad5)
  #0 preg_split(string, NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:337]
  #1 AphrontFormDateControlValue::getStandardDateFormat(NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:219]
  #2 AphrontFormDateControlValue::newDateTime(NULL, NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:201]
  #3 AphrontFormDateControlValue::getFormattedDateFromDate(NULL, NULL) called at [<phorge>/src/view/form/control/AphrontFormDateControlValue.php:80]
  #4 AphrontFormDateControlValue::newFromRequest(AphrontRequest, string) called at [<phorge>/src/applications/phrequent/controller/PhrequentTrackController.php:70]
  #5 PhrequentTrackController::processRequest() called at [<phorge>/src/aphront/AphrontController.php:29]
  #6 AphrontController::handleRequest(AphrontRequest) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:284]
  #7 AphrontApplicationConfiguration::processRequest(AphrontRequest, PhutilDeferredLog, AphrontPHPHTTPSink, MultimeterControl) called at [<phorge>/src/aphront/configuration/AphrontApplicationConfiguration.php:203]
  #8 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.

Event Timeline

aklapper renamed this task from PHP 8.1 ctype_digit/preg_+split exceptions in Phrequent for no date/time to PHP 8.1 ctype_digit/preg_split exceptions in Phrequent for no date/time.Thu, Feb 13, 20:07
aklapper renamed this task from PHP 8.1 ctype_digit/preg_split exceptions in Phrequent for no date/time to PHP 8.1 ctype_digit/preg_split exceptions in AphrontFormDateControlValue for no date/time.