Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102458 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10874 invoked from network); 26 Jun 2018 16:32:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2018 16:32:16 -0000 Authentication-Results: pb1.pair.com header.from=kalle@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.174 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 74.125.82.174 mail-ot0-f174.google.com Received: from [74.125.82.174] ([74.125.82.174:46773] helo=mail-ot0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/01-01794-58A623B5 for ; Tue, 26 Jun 2018 12:32:11 -0400 Received: by mail-ot0-f174.google.com with SMTP id v24-v6so19686548otk.13 for ; Tue, 26 Jun 2018 09:32:05 -0700 (PDT) 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:content-transfer-encoding; bh=gGPu7t/P1mRwV0OJr/kQs3c65phNIr/PZtNSZ1xSaXI=; b=P0fP9Fnrdl/xMsOMyt2ZXjQO5M4XPa+mUAKKUXOmMCRxIVSpNrxuARBUahPzV4RyFE WiRQGCmS3MYhI4b5NNEzIHBU+3gb2NKE1N/j0fflS/5bKaC+ecATtdgr24V1UiEnbEGE F50Yt0kSxETwzMYFlBBsEOXxr6PXJb5T3IGfMudlbLHQ9S9dgMWPCD3fo7MIXCOxWXBU 5PnKkHKumcjFFSduJXXcPeU++LJaI38s4yCTVde7d5mwgSKs98iJYWpDhWc/zCMylaVx U6gv1G5UzuYh/FE3GHfzygx5HW95v+vxKtowkgCRkEHhrQu+wC/6eMaSqRLql4Qefy2l /Zjw== X-Gm-Message-State: APt69E3CO6XibKjNLFCmTAHeHz90C+wQMPz3Jdf7/F1gfEEjBoqRd1jM /hCrzQjflJxVOyEFdCbrzkvcisVQqWCXmBcBoVA= X-Google-Smtp-Source: AAOMgpcrhjYmY3bkARRGgau+Qn+ZRNeyhcF8lUAGL6+U0/0qyHOh70ptv7YyheyCRTWgVAiR1pRosKWgcovyrxmuptA= X-Received: by 2002:a9d:4895:: with SMTP id d21-v6mr1210790otf.208.1530030721575; Tue, 26 Jun 2018 09:32:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 26 Jun 2018 18:31:50 +0200 Message-ID: To: Nikita Popov Cc: Internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: kalle@php.net (Kalle Sommer Nielsen) 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 RF= C > for it, please write me a mail until tomorrow, so that it might be includ= ed > 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 a= nyway - 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 - 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. --=20 regards, Kalle Sommer Nielsen kalle@php.net