Re: [RFC] Deprecations for 7.4

From: Date: Fri, 21 Jun 2019 17:08:29 +0000
Subject: Re: [RFC] Deprecations for 7.4
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-106015@lists.php.net to get a copy of this message
On Fri, Jun 21, 2019 at 6:54 PM Theodore Brown <theodorejb@outlook.com> wrote: > On Fri, Jun 21, 2019 at 10:20 AM Kalle Sommer Nielsen <kalle@php.net> > wrote: > > > Nikita and I would like to open the discussion for the RFC: > > "Deprecations for 7.4", this RFC targets a larger set of various > > features targeting for deprecation in 7.4 with the intention of > > removal in PHP 8.0. > > > > https://wiki.php.net/rfc/deprecations_php_7_4 > > It's still unclear what is being proposed for the register_argc_argv > ini directive. When the ini setting is removed, will the $argv > and > $argc variables always be available on CLI SAPIs, and never be > available on non-CLI SAPIs? > > If that's the case, I'd propose a deprecation notice in PHP 7.4 when > using -d register_argc_argv=0 on the command line, and when > accessing > the predefined $argv or $argc > variables from non-CLI SAPIs. I've update the RFC to say that the option will be removed without deprecation, with argv always available on CLI and never on non-CLI. Throwing a deprecation warning when accessing $argv in non-CLI SAPIs is too complicated and/or unreliable. Nikita

« previous php.internals (#106015) next »