php / php/php-src

PHP 8.5: register_argc_argv is Off in CLI

Aperta
#20,279 6 commenti 7 reazioni 1 assegnatario Vedi su GitHub

@devnexen ci sta già lavorando.

Dal 24/10/2025.

Bug SAPI: cli Status: Verified
Lingua principale
C
Stelle
40.4k
Fork
8.1k
Merge medio
2g 13h
PR unite (30g)
96

Descrizione

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)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.