PHP 8.5: "register_argc_argv must be set to On for running Codeception"

7 hours ago 1
ARTICLE AD BOX

The handling of register_argc_argv changed in PHP 8.5. The plan was to hard-code it to On for CLI, to Off for FPM, and to deprecate the setting itself (meaning that these values cannot be changed anymore): https://wiki.php.net/rfc/deprecations_php_8_5

However, there seems to be a bug in the current implementation (at least in PHP 8.5.0), so that it's now Off in CLI: https://github.com/php/php-src/issues/20279

Solution: Open your php.ini for CLI and find this line:

;register_argc_argv = Off

Change it to:

register_argc_argv = On
Read Entire Article