Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106015 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3630 invoked from network); 21 Jun 2019 19:53:35 -0000 Received: from unknown (HELO mail-lj1-f174.google.com) (209.85.208.174) by pb1.pair.com with SMTP; 21 Jun 2019 19:53:35 -0000 Received: by mail-lj1-f174.google.com with SMTP id v24so6567808ljg.13 for ; Fri, 21 Jun 2019 10:08:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E8vwzNrz7ZFMt0efZWiOjyZWTtKD26QHHcPdibfsoLo=; b=MsfS0YfuT/xobP1d87f5Z9C9PyUfPs0HgqCjZ1JKpE6LzYBrXDFtunt4dTdEY/D6J3 rxofhmghJmu/LKhOpHB8Jf2DaXq6hC29l9ut8OtjAE/Sr4U1OpVNRcTbUl8w3+pgtAwp +9G+M+VmdLK1JZMzoLXWfaGLJhh5zbghGoUuffj7wLkhWjg2d6yj8A1waNMVT+reip+u 8JmC1ZZDot5b5FfXnvXJpRTTD/nBTK/DVsoR1jqngLM08GRvvMdbiHRWrIitcHoPO9t3 qL+0igYOG94HP+LcBdz8gZRTjbaBbbWzFWhKHDH2dMaNjwuG644fZ2cGFQpQBJZh3a43 HMvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E8vwzNrz7ZFMt0efZWiOjyZWTtKD26QHHcPdibfsoLo=; b=aJEaTOjua4S3chj4wHHL11PLQYDscW8aoDsc4XGyu/QFZxBV7BJA/4gazEzd5w09Mo dE7Fv6Sh0spBddO2MQnpaT1jp+N6QzcsX+XIKgPUeCZhVgQe7yEn5YF0/XphVPw5ae2n oC9Zjq6yzWIA+bHA77x/AnrczLc0edT0MYRwYEeBRNIRQ7hij9K5MzefDjGyW8s5Dyxd kKC/DSafnoNuMHOVdPVaIQ3GzPFMO/0U6GmbjIt74EphwQWhUfdJ4OQUV+/MNK08mOpt M0KzNyL58Ap667KujmlAZi7gOFTEZxGPSbXOewA3FuXcyNn+lkSJEfeVJBEneTBzhIe8 HGlg== X-Gm-Message-State: APjAAAVkuSnKqV63/IqgrZnLv8Hm/PCdo+hQbPJkZku3/9GjmLapQstn 4HpWgWkQXgtHouI5PMG4j2JNUGZ/ck1PyliUcP0= X-Google-Smtp-Source: APXvYqwT4j/BLdT/jh3ZVbIUEbR1EeAxtrb79TJIb89m/szkoIEUsnNqgZdquiXu0iGCTNNOYCxU7E3/wb1c5xuSRQw= X-Received: by 2002:a2e:89c8:: with SMTP id c8mr22800425ljk.70.1561136926100; Fri, 21 Jun 2019 10:08:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 21 Jun 2019 19:08:29 +0200 Message-ID: To: Theodore Brown Cc: Kalle Sommer Nielsen , Internals Content-Type: multipart/alternative; boundary="000000000000ed10da058bd8836d" Subject: Re: [PHP-DEV] [RFC] Deprecations for 7.4 From: nikita.ppv@gmail.com (Nikita Popov) --000000000000ed10da058bd8836d Content-Type: text/plain; charset="UTF-8" On Fri, Jun 21, 2019 at 6:54 PM Theodore Brown wrote: > On Fri, Jun 21, 2019 at 10:20 AM Kalle Sommer Nielsen > 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 --000000000000ed10da058bd8836d--