Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106202 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95104 invoked from network); 9 Jul 2019 16:19:19 -0000 Received: from unknown (HELO mail-lf1-f53.google.com) (209.85.167.53) by pb1.pair.com with SMTP; 9 Jul 2019 16:19:19 -0000 Received: by mail-lf1-f53.google.com with SMTP id u10so13429384lfm.12 for ; Tue, 09 Jul 2019 06:38:58 -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=IUhRKfR/ZeuUptwsNqzx55tZ43iNUoLhoTtKhe3wZos=; b=VipFreNLX2KOPkwkKs3VjFGElG4nQ7Ha9PZNc3C7d8F/jJ79c14b3BLo0Zfq/gzgik 084DZErYhYsNerrq6UpV1YwWe4reK9K2ZR3EkArlb852R2UxGgi/hIXICovsoGep0o1W k5i4N1HQudol2lp1NSMlLFFc4vD3CTlrMLDZ83cxe6rCOXujZ33Shs629MfgcbW5fGkB 25Q2FrBrDPZskltXa+BwXYng15aPuYhTMlURULxx5QUsYN8k3NzyUODjZRLRNBSSKFdP ReHqagLhz5ectkTN7M8XgabKdVgTEstoPLehaMYTTmLNSIx3uaPyJCqgBZChBFM8tUK0 Y8Zg== 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=IUhRKfR/ZeuUptwsNqzx55tZ43iNUoLhoTtKhe3wZos=; b=e4s4+cMjr8eE+/oxjtQ9RUE322wEmrdx6zuiTd7NzP9moC+8DEG72lX5E6qL4OiSDi YCggIghO+Tw0mVwAqoluZPA/JPvXT+7BHnvoXd4KJs8rK/rKPmHFQa+fOPZW+VXhzPxp U09YFglPpe/nbnm4585b5QQb2lBMDq99UDdoTX18CKmbdIfGeTL1ZRn0sjiAMkvY+ejZ Ph6bPSLcYERrG+RcsCrH4ApazZ5xVLw0m3c9tiaCnNhDFe1gfvOfLadZoe8+on24s579 dvEOVNP7OhiLG5429c63gUPPsHa4ayvQMQTQnKEUB9uTwFIgF7kqAbyqncmJH/+OT5ka b5FQ== X-Gm-Message-State: APjAAAUP2KWFN3+ypQqVXR4auuC2iXOPb6qmLkX02LN37cohvPzmD4Z5 TBRKj6EBDbjwqhSdZMx3DUuDtg8JjlAWS7gfgJo= X-Google-Smtp-Source: APXvYqx6jfQY460V0Uashb263deHidj6XdyIApmGR7ydEaCGdLLeP5pJWlQNa8HqvXdJDsWmdL6Khb/GAB/IF+OZEeA= X-Received: by 2002:a05:6512:21c:: with SMTP id a28mr12008132lfo.14.1562679538062; Tue, 09 Jul 2019 06:38:58 -0700 (PDT) MIME-Version: 1.0 References: <676EE5E8-3C1D-41B7-8B7B-C7F24E673F95@gmail.com> In-Reply-To: <676EE5E8-3C1D-41B7-8B7B-C7F24E673F95@gmail.com> Date: Tue, 9 Jul 2019 15:38:42 +0200 Message-ID: To: Claude Pache Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000c39c06058d3fae6a" Subject: Re: [PHP-DEV] [VOTE] Deprecations for PHP 7.4 From: nikita.ppv@gmail.com (Nikita Popov) --000000000000c39c06058d3fae6a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 9, 2019 at 3:22 PM Claude Pache wrote: > > Le 8 juil. 2019 =C3=A0 21:27, Nikita Popov a =C3= =A9crit : > > Hi internals, > > I've opened voting on the deprecations for PHP 7.4 RFC: > https://wiki.php.net/rfc/deprecations_php_7_4 > > As usual, each deprecation has it's own vote and requires its own, > independent 2/3 majority to pass. Voting closes July 22nd. > > Thanks everyone for their feedback. > > Regards, > Nikita > > > Hi, > > Having actually read the justifications for deprecation of functionality = I > don=E2=80=99t care about, there is the following one that I don=E2=80=99t= understand: > > About restore_include_path(): =E2=80=9CThis function is essentially an = =E2=80=9Calias=E2=80=9D of > doing ini_restore('include_path'). The main rationale for this is to clea= n > up the standard library for consistency, similar to what we have done wit= h > other functions that are just wrappers for ini directives.=E2=80=9D > > But get_include_path() and set_include_path() are not yet deprecated, are > they? So much for consistency... > I'm not sure what Kalle meant with that last sentence, but the reason why I personally think restore_include_path() should go away (apart from the obvious uselessness) is that it has a similar name to other restore_* functions, but does not behave in the same way. Functions like restore_error_handler() and restore_exception_handler() operate on a stack and will restore to the last value on that stack. restore_include_path() on the other hand will restore the the original (initial) value. As such, this function doesn't offer anything over ini_restore("include_path") apart from an ambiguous name. get_include_path() and set_include_path() on the other hand do exactly what they say on the tin, and I believe the former at least still sees some practical use. While getting rid of the include_path functionality altogether would certainly be nice, I don't have any particular gripe with these functions. Nikita --000000000000c39c06058d3fae6a--