Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102439 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32299 invoked from network); 25 Jun 2018 19:32:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jun 2018 19:32:14 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.208.52 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.208.52 mail-ed1-f52.google.com Received: from [209.85.208.52] ([209.85.208.52:39377] helo=mail-ed1-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/0D-50433-A33413B5 for ; Mon, 25 Jun 2018 15:32:12 -0400 Received: by mail-ed1-f52.google.com with SMTP id w14-v6so6117686eds.6 for ; Mon, 25 Jun 2018 12:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=kLIBDqoX5xYZRPsCYG5FdSB7G2PAE6ZPNP01TcSpX+A=; b=Za+v1sL9XWWyHByrytE+rA0n/ImvFKCicdgrDaJwySKxkNn77g+A42f9XEQKaMn5SD DO8GCX01aHTXuz1GFog7QBg5kTVMHVueVCA1VUBkX5vuxiLInGAZzDreQdki0kxFjAm3 IBbn/gnfeHrox2mJs9pLe+KoVYarKCX3zrhahGXxe6TQJCRiA9O4HiS8rShclJ3ZU7DR euJhX2mhQ4kfmJccNJNu9be5X6X+QU4ssDqomrRp81noXkes2oJqX9AiYdDcaNbeZcC9 yzE7Lm1YzdnnenoA4sMSgX2vZEyoRLuEE7DDF2cLCJfyUNn+KLV5nIjWKMdNmHiFEOfH NjPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=kLIBDqoX5xYZRPsCYG5FdSB7G2PAE6ZPNP01TcSpX+A=; b=R/yMONnzNqEM3xHoY7aLdQp3GJ+DeovNQUsOCV2lQ2Oeng13UnD3Oc9gl+S0MzjjQJ 7/0UVSTrDGpQ+TM6knK01JXxGs2L3+Bg/GymzRiYyAzYv7NfFe+6wXb+5bkAY2roCmuX YZBntaB+cSSIa+pqsjewMhcykTpyUTT9m4GMQzqLM27n512MmJwRMscUDDT+jbP/mNUE LIWvMkqHNmSg9UAI6EHbmra4q8/Q1tIgbNkcbVnA9SDw1BQ3fq8r1NI7N+2B099D+zR1 BG4qUkN7qoo0Sm0m+UF6ckXcOB7bHpYgUI9vHcFk4WX5cJSH/64Vh2hx/fFs5qDb1x80 bBJQ== X-Gm-Message-State: APt69E2YiRIsX6SOSOOgANh2ZWnMY1n9eudfWHxb64sglBf32SI+dGSa Rcu3rUK2kafIAU8Axl5oImEzGduTRf/+yaQFBmVXRA== X-Google-Smtp-Source: ADUXVKKciI0WTV20Bu0vyhdrJeQvDLSZDAX68DEAzkFXXYNO7CKCiSaP895i4JzVsaKqgq9wpQCTCxjvgE5TFcxoiwg= X-Received: by 2002:a50:8b8c:: with SMTP id m12-v6mr3995947edm.165.1529955128192; Mon, 25 Jun 2018 12:32:08 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 2002:a50:8625:0:0:0:0:0 with HTTP; Mon, 25 Jun 2018 12:32:07 -0700 (PDT) X-Originating-IP: [73.210.228.160] In-Reply-To: References: Date: Mon, 25 Jun 2018 14:32:07 -0500 X-Google-Sender-Auth: Azf1x6fjc4XE5FlWWAmcGnc5uMw Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: pollita@php.net (Sara Golemon) 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 needed] 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 > Defining a free-standing assert() function > Eww, yeah. I can see that problem. I'm not a huge fan of banning all namespaced assert() function declarations, but it's certainly the most direct "solution" to the problem. A very quick scan of github only shows one effected usage in a repo with no followers/stars apart from the owner. Given the lack of whole-program analysis, it's either ban the declarations, or abandon elision. Frankly, the number of people taking advantage of the free dev-only check is probably way higher than the number trying to define a function called 'assert' so.... =F0=9F= =98=AC -Sara