Page MenuHomePhorge

ERROR 8192: exit(): Passing null to parameter #1 ($status) of type string|int is deprecated at [arcanist/src/parser/argument/PhutilArgumentParser.php:494] on PHP 8.4
Closed, ResolvedPublic

Description

Seen when running a command on Arcanist with --help while using PHP 8.4:

$ ../arcanist/bin/arc diff --create --help
[2025-02-04 13:12:27] ERROR 8192: exit(): Passing null to parameter #1 ($status) of type string|int is deprecated at [/home/taavi/src/phorge/docker-phorge/arcanist/src/parser/argument/PhutilArgumentParser.php:494]
arcanist(), phorge()
  #0 exit(NULL) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:494]
  #1 PhutilArgumentParser::parseWorkflowsFull(array) called at [<arcanist>/src/runtime/ArcanistRuntime.php:171]
  #2 ArcanistRuntime::executeCore(array) called at [<arcanist>/src/runtime/ArcanistRuntime.php:37]
  #3 ArcanistRuntime::execute(array) called at [<arcanist>/support/init/init-arcanist.php:6]
  #4 require_once(string) called at [<arcanist>/bin/arc:10]

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

I fail to reproduce with PHP 8.3 with the given steps: ../arcanist/bin/arc diff --create --help prints the help as expected, with no error.
Which PHP version do you use?

Which PHP version do you use?

PHP 8.4.3 (cli) (built: Jan 19 2025 13:35:15) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.3, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.3, Copyright (c), by Zend Technologies
    with Xdebug v3.4.1, Copyright (c) 2002-2025, by Derick Rethans

Thanks. I can confirm with PHP 8.4.4 after upgrading one of my machines.

Cigaryno renamed this task from ERROR 8192: exit(): Passing null to parameter #1 ($status) of type string|int is deprecated at [arcanist/src/parser/argument/PhutilArgumentParser.php:494] to ERROR 8192: exit(): Passing null to parameter #1 ($status) of type string|int is deprecated at [arcanist/src/parser/argument/PhutilArgumentParser.php:494] on PHP 8.4.Mon, Feb 17, 18:59
Cigaryno updated the task description. (Show Details)