Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102460 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17564 invoked from network); 26 Jun 2018 18:16:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2018 18:16:35 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.44 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.44 mail-it0-f44.google.com Received: from [209.85.214.44] ([209.85.214.44:39340] helo=mail-it0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/02-01794-003823B5 for ; Tue, 26 Jun 2018 14:16:34 -0400 Received: by mail-it0-f44.google.com with SMTP id p185-v6so3648293itp.4 for ; Tue, 26 Jun 2018 11:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BLEUjFrl4DdL+KaTzYabgmAdx91kKD2MbLlrfTiRoMk=; b=CqY2aHcpDMxXIbdTm5SIwir5pljdepqavNLw4MrA+NmXeVOePJrvuvGuXYmzI8MJzT h2iXElS6UUetoWe6VQo8qpKOQbMuQc7rFIM4duowzjACyBL6V98Qzxe/CgxTnRSVgbe2 /LGzp3KKQUHZLsoWDfr2ypHkHO55SebnG0BA9gboFNkQVLJGkS3rvjU2rWKFdHq18G2H Y22gakd5kpI0h+4mYfv6/kJnAYwyfUBrPI6Hv1bVE26rUXr8twjvodPzTUD/omBxvXYM ldwgPl9xAmoL1Sa790YRLrl9VeQlmW0ngxb1DiMv8GG8MFbdcDwR3Fqlb409JVc07vF0 nVKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BLEUjFrl4DdL+KaTzYabgmAdx91kKD2MbLlrfTiRoMk=; b=qJadYUw6vyxhB48Jl8gSvjnuVho6g8gG4zUZsRN/kWg0Edp+RWf6XOofnvFcp5YG59 VjO0kj1AUaoU+ayRwqu1iNlDtPL+CyCRt6WUNBVOG+A3pnEbN4Kg9EH1HynoyMkpTlwW KlJhcPJ691TaKlAwNq0dPSfdKTZnHFJa92W0QItIjyW+gwYAphYer4CUwDhX8q8RVfg0 w/ALJBEORbbiiT2GfcJ3AnlrPH8k1egRj7s391qSC3vT3pqqW7YAxi4yNKZX9ad7CDue 5i/jL+UYrU2KHPWr41t1SKEEa82kguN2FJwqAi6bFH7pktQz/HZPGRhgG5L/pSdmhaj6 Ww8Q== X-Gm-Message-State: APt69E2xeSQNH2lWz/vdHq5hKpIlzhQU/xThxC3g6sLs5B0U63aQEiRS UjdvuLx86BLngAR+bzbP1QI1HRJ0tI9QgLz0myE= X-Google-Smtp-Source: ADUXVKItQ5/Oo8QWmJYJlACWYr7/TGDwWlicIS0bwmiI7cmmC8ORppoGphO75GZBjsn6jP2Tqgko4dsUzQUMp8wdhfY= X-Received: by 2002:a24:202:: with SMTP id 2-v6mr2254048itu.63.1530036990210; Tue, 26 Jun 2018 11:16:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:fe16:0:0:0:0:0 with HTTP; Tue, 26 Jun 2018 11:16:29 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jun 2018 20:16:29 +0200 Message-ID: To: Kalle Sommer Nielsen Cc: Internals Content-Type: multipart/alternative; boundary="0000000000004b7ab0056f8f7fb7" Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: nikita.ppv@gmail.com (Nikita Popov) --0000000000004b7ab0056f8f7fb7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 26, 2018 at 6:31 PM, Kalle Sommer Nielsen wrote= : > Hi > > Den s=C3=B8n. 24. jun. 2018 kl. 18.47 skrev Nikita Popov >: > > If you have a minor deprecation in mind, but were too lazy to write an > RFC > > for it, please write me a mail until tomorrow, so that it might be > included > > as part of this proposal. As time is limited I don't want to include > > anything larger or controversial in this RFC though. > > As suggested in the past, I would like to add the following to this > list (if its not too late): > > - The (real) type-cast and its function, is_real(). There doesn't > seem to be any support for reals in settype() anyway (side note: in > the implementation of settype() it claims "double" is deprecated) > - Function variants that already exists as constants, php_sapi_name() > > PHP_SAPI, pi() > M_PI, phpversion() > PHP_VERSION etc > - enable_dl ini directive, as dl() is only operational for CLI and Embed > anyway > - pdo_odbc.db2_instance_name ini directive, its been marked as > deprecated and mentioned in the manual since PHP 5.1.11 that it will > *certainly* be removed in the future > Feel free to add this one to the RFC, if you know what the background for the deprecation is. Given that the manual already marks it as deprecated for so long, this seems like a mere technicality. > - The 'b' constant string prefix, its not used and was meant as to > make code ready for PHP6, should the time come where we want to add a > feature that uses this, we can always re-add it > > Other things thats been suggested by others in the past: > > - Second parameter of spl_autoload() and its associated function > spl_autoload_extensions() > - hebrevc() -- same as hebrev() + nl2br(), perhaps even deprecate > hebrev() too (see next one) > - convert_cyr_string() -- Point to mb_convert_encoding() / iconv > - Remove get_magic_quotes_gpc(), not been working for what, 5+ years now= ? > - allow_url_include ini option, this can lead to all kinds of > security complications anyway > - The alternative string interpolation syntaxes (${varName}, > ${varName['offset']}, ${expr}) and make them more consistent > ({$varName}, {$varName['offset']}, {${expr}}) > - The historial parameter handling that works both ways for > implode(), should be unified to match that of explode() > > I could probably think of more, but thats all I got for now. I can and > will of course help produce the relevant patches should it be needed > for most of these things. > Given the recent discussions about having a PHP 7.4 release for additional deprecations, I'm going to punt on the rest. While they may be no-brainers to you and I, a lot of those are actually quite controversial (e.g. there was an RFC to deprecate b' in 7.2 and it was declined -- go figure!) I'd suggest that you already open up the next deprecation RFC, to make sure these are not forgotten. Some of them should probably get separate proposals altogether (especially the var interpolation syntax). Nikita --0000000000004b7ab0056f8f7fb7--