Skip to content

Do not expect the register_argc_argv ini setting in cli for php >= 8.5#6921

Merged
TavoNiievez merged 1 commit intoCodeception:mainfrom
W0rma:register-argc-argv
Jan 9, 2026
Merged

Do not expect the register_argc_argv ini setting in cli for php >= 8.5#6921
TavoNiievez merged 1 commit intoCodeception:mainfrom
W0rma:register-argc-argv

Conversation

@W0rma
Copy link
Contributor

@W0rma W0rma commented Jan 8, 2026

Related to #6920

As explained in php/php-src#20280 (comment) register_argc_argv is ignored in the CLI SAPI as of PHP 8.5. That's why codeception is usable without any problems in PHP 8.5 or higher with the CLI SAPI even if register_argc_argv is disabled.

With this PR workarounds like used in Codeception/module-asserts#34 to get tests under PHP 8.5 work in the CI are no longer necessary.

register_argc_argv is ignored as of PHP 8.5 if the cli SAPI is used.
@W0rma W0rma marked this pull request as ready for review January 8, 2026 11:45
@W0rma
Copy link
Contributor Author

W0rma commented Jan 8, 2026

@TavoNiievez FYI

@TavoNiievez TavoNiievez merged commit 72ea677 into Codeception:main Jan 9, 2026
10 checks passed
@W0rma W0rma deleted the register-argc-argv branch January 9, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants