Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108448 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93057 invoked from network); 11 Feb 2020 00:50:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Feb 2020 00:50:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CFC2F1804E6 for ; Mon, 10 Feb 2020 15:04:39 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS 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-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 10 Feb 2020 15:04:39 -0800 (PST) Received: by mail-qt1-f173.google.com with SMTP id d5so6577930qto.0 for ; Mon, 10 Feb 2020 15:04:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ctors.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XhpuwrQ1WsJk+IPC+1nJRqR9w0WesHGEKkFgr4ox6So=; b=mNXqCIm/cvujjD1k/gnaL3h0RCkscUO4OH8jLLUrjZdCZRLkE5bQ/dIRr0PC/53LYb 6TRYEEErxtZFHbEmDuVO72cYQ1ngwVlc7JdbQweZuU9hqEciQx8LHM/pHp8BtNyRxo6X tbcAezg8sfwRgUx2DgqyG/pMFDQkxWFA3dX3zwyjg6Xv+kMbACrJIUzYCsm7BssWMYDO SYSM5InUocKQqoDwBa+t9QRVDibL7hsS/Cfio76JqKA97OWJR0gj81I4HNDzFl0fZmZx 9DpU4507tdDTJdWgkUCchadITFblILniIFL800aK30xZIaihZ1GOI3awJkXG0wuelApK P/Ag== 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; bh=XhpuwrQ1WsJk+IPC+1nJRqR9w0WesHGEKkFgr4ox6So=; b=frTi5FBVc37rzZRmNX3TNUyJ9yRK8Im4Db3sqXAEH4t4paz4opv6YwhQRaYiYUIgE+ ulWB33IeWreB1WjE4Tm5auJuuPed3VjH3Q0yDTUepHATlSbbPP0qgYOkutapx1N6KLg1 9OxhJEBXiqTG5jX/vTyVhCtGZFBxD3MoXrFZLHW+/Hu3skPjLySI2VlV1wVcbsT8jrJ1 Sy8tZn3gGEnFxaiLJChT6cswDmQetewOh1LkhcyzgZx1jFmXqfSa8+GGicJxEtIpaR6M kBE6CT5yTiz8yhJx+EwUzME1bMbHVFVKETGF3BSUyP6QR/hvugyDgDy0ttW4zT04UrxD dwfQ== X-Gm-Message-State: APjAAAWIdJCazavQUvlJ2yhk8KHZK9WHjPxUUlHWjSN8zBCWakY7hC7S 1OZ+yuR14XOi7ZNDO8SM0Swr7cX0WFCmnWJbbjeooV0Q X-Google-Smtp-Source: APXvYqy4VeB9cy3eT0RWK9q3G7VxDmhzpEzwSYPZCzsjDxfFtdOM9hUY12M5NXG+qP9bgE/kjcpgLY3PyFgrdYxpfig= X-Received: by 2002:ac8:7b4f:: with SMTP id m15mr12551830qtu.48.1581375877578; Mon, 10 Feb 2020 15:04:37 -0800 (PST) MIME-Version: 1.0 References: <5e41dae0.1c69fb81.1cb50.6c01SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: <5e41dae0.1c69fb81.1cb50.6c01SMTPIN_ADDED_MISSING@mx.google.com> Reply-To: Tom Van Looy Date: Tue, 11 Feb 2020 00:04:26 +0100 Message-ID: To: Mark Randall Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000070956a059e40c36b" Subject: Re: [PHP-DEV] Re: [RFC] deprecate md5_file and sha1_file From: internals@lists.php.net ("Tom Van Looy via internals") --00000000000070956a059e40c36b Content-Type: text/plain; charset="UTF-8" On Mon, 10 Feb 2020, 23:36 Mark Randall, wrote: > On 10/02/2020 21:49, Tom Van Looy via internals wrote: > > I suggest to deprecated the functions md5_file() and sha1_file(). This > will > > make people think about upgrading to a better alternative. > > It won't. > You can lead a horse to water but you can't make it drink. If this is explained in the upgrade guide, that's all we can do. I would limit the deprecation to these two functions. Not the entire algo's, because indeed that's not going to happen. I give you another case. What if a new user finds only these two functions and starts using them because a sha512_file() etc. does not exist? If the functions are deprecated at least that would be explained in the docs. Tom > --00000000000070956a059e40c36b--