Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120629 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10238 invoked from network); 19 Jun 2023 21:27:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Jun 2023 21:27:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7FBA618054A for ; Mon, 19 Jun 2023 14:27:38 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 19 Jun 2023 14:27:38 -0700 (PDT) Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-55e4d40794cso1033057eaf.2 for ; Mon, 19 Jun 2023 14:27:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687210057; x=1689802057; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FiKufB0Kg9c2K7o19e+P5HXNAK9tVmG9BLZGPFBd8do=; b=FFwH2c6Mag/K1RrYeeKzGASaPPcco2ZbtHtK2nuGuPPXgEFQlHTYyGNTFMulNZ2Mqc jWS+6PwUcANLSKI8mfhCrcs10oWYHyqk69RbylkKDkIT7wpP32sTOz/APh9bNjwBHdyj eUu/48EtjjDS2TuYNrWupriP1I1GXTf8DNq+KPahR3NF0MKJDi2FOQbRfVzYwxL739TO lcSRQ0vuvcWSc9466ziiVLyDUxrOk7FoKRagy5w9j5lmO9/SHha5izKJX7uC2opZmP1O jsYR7bj4yh11ViQCCJOSyxwlorwPlhIqOnbAo3duhgBqwgdYUK0O99G6hrwLlB/UKp0D 2lMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687210057; x=1689802057; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FiKufB0Kg9c2K7o19e+P5HXNAK9tVmG9BLZGPFBd8do=; b=Weetv1gQGHfz+vMUsxwM4hkPu5lYblZLpXGTs6U1PVu3d28zHs+3ngvRCj1HeHB1Y6 bYL20uWyFasvoq8yPa4hwZNMvoOmwwv8goqT2pE/vPbvDmT7M+af+qYFlhYffSGQhczW WaIZwVAqgpQvkTAC/Z3d3Wj6DC9Cqw1Er2ibHoBygId1bWtPILIrHfciQFtCqMWpEhvi 7mr6jr9B7c6MuzAngYGLCkidXX2bnPkrmkxebWtJ6mOyx7oRJ08diOAm2Wp0pAwiqV49 sI7lq5p+UBmTJsEe+xX0jVddhNw873Eim6YqBU5xN4dapTccZB3w9MJRmpAr/aQh5KeA uJwA== X-Gm-Message-State: AC+VfDyyQfeNkPa8IfS5QDdo/cu43Ht7EIANoqZ9izNZduxzTOmyCbv6 bdTbspNzaopugVeZRFrSmXKewNWvCA219JQFvw6C3o3EMxEtnQ== X-Google-Smtp-Source: ACHHUZ4KOHfRNi2RmGQZ+MLWuXug8J2yC3UjJoeV9ZH0RQGf6P7tx7mLAcyLQvcMo3NcB/tIjK96DAgJFPu0VV0NlJM= X-Received: by 2002:a4a:be18:0:b0:55e:429c:f021 with SMTP id l24-20020a4abe18000000b0055e429cf021mr2857890oop.9.1687210057216; Mon, 19 Jun 2023 14:27:37 -0700 (PDT) MIME-Version: 1.0 References: <9ea3a5af-679d-ad63-f9c2-e0d8d148db3f@bastelstu.be> <5ca4e382-8284-1cd0-696f-0dfd693523f8@bastelstu.be> <648B24CF.4090105@adviesenzo.nl> In-Reply-To: <648B24CF.4090105@adviesenzo.nl> Date: Mon, 19 Jun 2023 23:27:26 +0200 Message-ID: To: Juliette Reinders Folmer Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000001f35da05fe82340d" Subject: Re: [PHP-DEV] [RFC] [Discussion] PHP 8.3 deprecations From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000001f35da05fe82340d Content-Type: text/plain; charset="UTF-8" Hi Juliette, For the mb_strimwidth() proposal an impact analysis is provided at the end ("over 100 projects were reviewed"). For the other proposals there isn't and we do not believe this to be useful. We consider deprecations to be different from other RFCs that add new features, because functionality usually is deprecated because it is "harmful" in one way or another. A large impact (i.e. broad usage) should not necessarily be an argument against deprecation. Please also keep in mind that a deprecation is just that, a deprecation. It gives developers a heads up to migrate off the functionality at their own pace. We know that package maintainers are bugged by users whenever a new deprecation message emerges in a new PHP version, but this doesn't mean maintainers must react right away. Let us elaborate why we don't think impact analysis is needed here: * As per the TYPE_CURRENCY constant is (a) completely non-functional and (b) unfixable. As such any code that uses the constant is already broken and the deprecation is just pointing this out, making the user aware. * The CRYPT_* constants are possibly the least harmful part of the RFC, but they still can be misleading to a new developer. They are trivially polyfilled and also trivially removed from existing code by replacing them with 1. * MT_RAND_PHP is broken, because the sequences are not well-defined, defeating any reason for seeding. More reasons are already given in the RFC. * mt_rand() is everywhere and we don't believe anyone is denying that fact. But this should not be a reason against deprecation. As the RFC outlines, it is trivial to find this function misused with GitHub's search. We believe that the depreciation benefit outweighs the costs for existing users. * ldap_connect() is already soft-deprecated in the documentation. Regards, The authors of th RFC --0000000000001f35da05fe82340d--