php / php/php-src

PHP 8.5: register_argc_argv is Off in CLI

オープン
#20,279 コメント 6 件 リアクション 7 件 担当者 1 名 GitHub で見る

@devnexen がすでに取り組んでいます。

2025年10月24日 から。

Bug SAPI: cli Status: Verified
主要言語
C
スター
40.4k
フォーク
8.2k
平均マージ
2日 13時間
マージ済み PR(30日)
96

説明

Description

In this deprecations RFC https://wiki.php.net/rfc/deprecations_php_8_5 under "Deprecate the register_argc_argv INI directive" is the following:

We propose to deprecate this INI setting and make in default to Off in PHP 8.5, then to hardcode it to Off for all non-CLI-related SAPIs on PHP 9 (while keeping it hardcoded to On for CLI-related ones).

When I try php -r "echo ini_get('register_argc_argv');" on PHP 8.5.0-dev (cli) (built: Oct 18 2025 21:59:48) (NTS) it outputs 0. But I'm on the command line and I'd expect this to be set to 1.

PHP Version
PHP 8.5.0-dev (cli) (built: Oct 18 2025 21:59:48) (NTS)
Copyright (c) The PHP Group
Built by Shivam Mathur
Zend Engine v4.5.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.5.0-dev, Copyright (c), by Zend Technologies
Operating System

macOS 15.7 (and also on ubuntu-latest in GitHub Actions with setup-php)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。