Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10205 invoked from network); 5 Jul 2018 18:13:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jul 2018 18:13:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.182 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.223.182 mail-io0-f182.google.com Received: from [209.85.223.182] ([209.85.223.182:36300] helo=mail-io0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/15-55607-ACF5E3B5 for ; Thu, 05 Jul 2018 14:13:32 -0400 Received: by mail-io0-f182.google.com with SMTP id k3-v6so8581401iog.3 for ; Thu, 05 Jul 2018 11:13:30 -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=kiMqIlE/q9dMowbl0EPpGNSCbbmPtC2Moor6er3+dMo=; b=dGt9/mzj7/sN7iupwnofU6QGAzKQKaQUUal683oYjs2QbPNjnXRQdE5xR3+nR+mDE4 5jWeNNax9WJhjrY9PHbNQClTumRZ873dBkgteBc7xWuIH5DrtKt7c3JiPJ1ApbmGYd5P SpxSQHfJadBfn/Hx1Kl6Xn1sDySXWdrNJwbK8iVwU+K2Vu7sUS/IfdkY2a+qL0nDxce7 Eb1/OrWipUpcYlMNhBMbCP02pIFnhs1WG7yC0Cy5CDwK/hnugIX5O1O8rWFjyGrRkuDq /JwqGYleO+yNzjWsnxV/eAG6RxQQVNtoYSgMeN17qbl87eyK8Pm+3JRWkKrjEbf0r+Xy lvug== 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=kiMqIlE/q9dMowbl0EPpGNSCbbmPtC2Moor6er3+dMo=; b=MdjKOp33NwMOBTthmDWgtxUftwFQPG+aTWG0CPofwWrGrQQRd3NSZzuKmariy2ByJr VnVc7yZ2fxaFflEiuDIEgj6GFOXD3cWVN9uE1O5dZQwadkaBDvkkPVT3SjBcDmp60vrk wzwMrbx2VUxE3TrM8C9Dg8tiubfaFtoI2duyVRULeBHWrGlP0RqLfvQjkIRXMa8/eury ygUO+TJjOT/xMjFfjoZcmUtNg6VOnWQQsPpnLm+T+ZkhyoHlk8I0uAWiyGX6nXBmFP+K 89TQmYee0IrWzik958SiH+PUzdegDpopBS+ByXTr1LNDXN+IoIxqgtlpcH5xYIfO9nXw lUEw== X-Gm-Message-State: AOUpUlGB2asiX7JbCwivitP113grMxlpNA295fjFWvEXd+0p0X3msQLe 18bs2i/XTZii/t90IyJor3JfjuOHlbtkeK0yFAY= X-Google-Smtp-Source: AAOMgpdB0WjUaDf7C16USeTXjNjnLKmH9GN08HoBEAzA/79gK073dgJcG6lfRCqS4HGpuciJwfkxelcAx+3epKnTaN8= X-Received: by 2002:a5e:8d07:: with SMTP id m7-v6mr5752311ioj.258.1530814407802; Thu, 05 Jul 2018 11:13:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a6b:148a:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 11:13:26 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 Jul 2018 20:13:26 +0200 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000fe8aad05704480a4" Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: nikita.ppv@gmail.com (Nikita Popov) --000000000000fe8aad05704480a4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 25, 2018 at 9:32 PM, Sara Golemon wrote: > On Sun, Jun 24, 2018 at 11:47 AM, Nikita Popov > wrote: > > https://wiki.php.net/rfc/deprecations_php_7_3 > > > > Undocumented mbstring function aliases > > > Yeah, if they're just dumb aliases, then it's a slight gain to narrow > the symbol table by removing duplicates. A modest composer package > (nay, include file) would be sufficient to provide a bridge for > existing projects which use the removed aliases once they're gone. > This deprecation isn't *needed*, but it's also fairly low impact. =F0=9F= =A4=B7 > > > String search functions with integer needle > > > Agree with stas, the wtf quotient on this one is high. Mitigating > this is the availability of strict types, but even still I think > deprecating the behavior altogether is a wise move. Callers can > easily insert a call to chr() (or IntlChar::chr() ) to maintain the > old behavior in a version agnostic way. =F0=9F=98=95 > > > fgetss() function and string.strip_tags filter > > > "...these functions seem to be of very little utility..." [citation neede= d] > Anecdotally I struggle to imagine the use-case, but my imagination > isn't what it once was. There's not a trivial workaround for someone > who's dealing with a large/streaming data source from which they want > to strip tags. Deprecating this should come at a higher standard of: > proving that it is used, providing a userspace replacement, or both. > =F0=9F=98=A4 > As an insight into how much this functionality is used from a somewhat unexpected direction: While implementing the deprecation, I found out that the string.strip_tags filter does not have a single test and has been segfaulting on construction since PHP 7.0 if no allowed tags are specified (and performed OOB reads if they were specified). These issues have been fixed in https://github.com/php/php-src/commit/791f07e4f06a943bd7892bdc539a7313fb3d6= d1e . Nikita --000000000000fe8aad05704480a4--