Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124645 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id A41D11A00B7 for ; Sat, 27 Jul 2024 11:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722079553; bh=4O6mSV+cjxgJdYRNrp6jiAnK1LojkrcjnPuJrXX2dxQ=; h=Date:Subject:To:References:From:In-Reply-To:From; b=TLjz7eqWts0P2AX+Y/2ejr3wZr8bg/qSWcTtD84GFA6PQfokbsmbRzaFKEIys+Cs+ 1qo2SLs0NkzLqQsq83hR87mgn093k/fwdUhDD+gBRB78LA441H95JUbVG6Km/0uCDS kO97OEbxgYIYpcTgn8iGbBKvVXbwjfyu2fcq0VjmxLYJ7G5MR6/dIJExLyfH6NK1pL mwen6kRVcYoWik/GAXN2zWv34nphU5YaLKIYR1xPVASckxlntJ3LVa+sPqru6yWEkL rgc7LzXANgDZY4B+j8wZUpIhT3q1LFlP6xbLCBRvmXDHft8xDTmvrcIMlVBr8qRvLK JlRX/PA3Gfr6A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9A03E180077 for ; Sat, 27 Jul 2024 11:25:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 27 Jul 2024 11:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1722079452; x=1722684252; i=cmbecker69@gmx.de; bh=YahMYNuUQBugEm/08F9qv+duH9w94C6IDPqlf3gfaTQ=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=oG+OU9+kX5gYI8kL86/1HMlXbJtplMDvJJHmXTeHQOtYYM/xI75h6LBP/lrgWqw5 WiXVEzT1R8cxT2w+s/rwZuAY0ZIDV4wnRyOc4OOGf3fBXeBquSMv1jlB8vuUE4mk0 lHrv69xJkSYjY6hCrkEqsS1n7qhwLVMwbY+5VTcRCyCGKhufJZNE+ntheABF42Hsj t4PL/5ZIzW6UAmjC+82TTOMlR5GaPgQDRaJWywGDegG1MDhJ2LGsFzozzf7lnJM+T +QDgU4iK+oO1d+0USKgBfqhUnI9s7UFSGuoQ2zvK4S6r3jyCWWMVp4Nd1QR47wHC6 WeML7lXPk7y5Usbicw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.2.130] ([79.251.205.37]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MkHMZ-1rs2GD0O9R-00oI8j; Sat, 27 Jul 2024 13:24:12 +0200 Message-ID: <921dcf17-280b-4005-b31f-5811dbe5ce62@gmx.de> Date: Sat, 27 Jul 2024 13:24:12 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 Content-Language: de-DE To: "Rowan Tommins [IMSoP]" , internals@lists.php.net References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <95147d9d-d6e8-4396-bf0b-409c33679f90@bastelstu.be> <89096756-9f50-4b10-9630-d3b18e4b9c29@gmx.de> <3beb3488-94fc-484e-ac6c-ce7a7a0facd2@app.fastmail.com> In-Reply-To: <3beb3488-94fc-484e-ac6c-ce7a7a0facd2@app.fastmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Oktz+MQbSKHk/9TiBkx5anGsGJV8QT5olEaeKkI4HyQiBDXPc3l /ACw2hsfJjepv50/UnWU5zC2Dok95/9iuaVFd2RxMcT7uP9f42bVlnCQRvtTaGiyp1LJNky CxMRRw4JJrzWU7rCXhdP8n877zrK3d+xngoUOrl+tNGXCHKOTgWqrxUEMiMU2UErP+dQwZx pT4OxVLpkVkqZWVhPXe5g== UI-OutboundReport: notjunk:1;M01:P0:sue+Ul+oi+g=;SK93kBcrBayNvQhkJEla/yNnuE5 4ewszNSHWp1/ZRSkq8KnC1IiokonzRuq33Rbxp0jShrFod8QCr+CL2Txs7Y8u3UZmuv3LSmRt FW8z/eZ6dHdvcSxbL/pIB9noxD9/a5KFobUrhpCM9eCD+ux6+uFgoLi1NJNO5Sf019VAJlpEe RNpjU1LufI4y38UWy0qSN8qoaBuVtm15d8BarMIV86x98QPDDqhFcjnjmUhn3MRnswpoDbfy1 9qOYZU7Q8PbhcvUoVS+E9vKux1gxVVO4wVKjgyLTfnW710asc18dXlyEJ7O783ysG1nR1z48d OR7r1cbKYeiZsYmb7jjQ6T2nN5upbe0s09G4M/qErHi7M3PRGVHZTmkWkUjpeCuWEyiKHFL8E JR+a0tBw1WZoSNZYKXM/l+SFhNgWPemlLH1GXgRXKOMEb/+OiXaSgXQ6yWPnrcI3ilPbsmagS /XFjNgJhRFkXvPW9Z/HWUeeSYNMF0DqDPLyRZvJHMCBbSS2uYrq3HD68wh7XnGOrD8Cr8v/jO goBpgnvJbFqX6zYqy7K4HC5aelDTmhnazDSwzaCDMcQk135mYtYZY9279kNh2tamf5/VDfeUI k0wFBUDZDELVz3qSHA5nu2BdAlyiAfK1TQpcjIBAHWBLY3XCpwx1DBUfOoKpFxz15XtG3LG2k SZRr8G+vi/1JlTQiu2FZPKTf3QQRL5s06VsTL3EVnDKoHy5fzmtnlL9nN54BVcG00TPJZp4Wm 1xeIFZo1/jcmE3CvG47FkVEpRUfCQB7XOyviWZNTKwAkQ7jaM/dBUiZ/VZWlwcFcn7gFW0h4y Y5N6NyjrEfS0QHdmuNk91EX7iWe12yJwRTMyesOJ36ggQ= From: cmbecker69@gmx.de ("Christoph M. Becker") On 26.07.2024 at 19:33, Rowan Tommins [IMSoP] wrote: > On Fri, 26 Jul 2024, at 15:20, Larry Garfield wrote: > >> One thing to remind people about, the deprecations for md5(), sha1(), >> and uniqid() explicitly say they cannot be outright removed before PHP >> 10. That's at least 6 years away. That gives a loooooong time for >> documentation, tutorials, instructions, and code to be updated. > > It also gives a loooooong time for us to update that documentation *befo= re* we start raising deprecation notices, so that there's a chance for som= eone to actually know what they're supposed to do about it. Hmm, such soft deprecations should be a good thing, but I'm afraid they are not really reaching much of the user base. Remember ext/mysql? That was soft deprecated for "centuries", but still support channels were burning when it actually had been deprecated, and even after it had been removed. (interestingly still says the package would have been moved to ) Maybe, just maybe, it might be a good idea to repurpose E_STRICT for such things. Basically a three step deprecation: first document that a feature is obsolete, then trigger E_STRICT, and only then E_DEPRECATED. I haven't really thought this through, though. > In contrast, I voted against the deprecation of strftime() because no > effort had been made to explain how users should replace it. Surprise > surprise, nobody has spent any more effort in the 3.5 years since the > deprecation passed, and the only advice in the documentation remains: > > Instead use the IntlDateFormatter::format() method. Yeah, the documentation should certainly be improved, but if there is more work to do than time to do it =E2=80=93 what can you do? If there wa= s only the need to cater to PHP core and the bundled extensions, there might be sufficient time to keep the documentation in a good state, but there are also so many PECL extensions documented there, and at least some of them appear even unmaintained, and many of them probably nobody working on the documentation has ever used; see e.g. . > On Fri, 26 Jul 2024, at 15:27, Christoph M. Becker wrote: > >> Well, you are supposed to also check the hash_hmac() documentation... > > Why would I, if I'm not using that function? [=E2=80=A6] I should have explicitly marked my comment as irony. Of course, readers of the documentation are not supposed to check some other functions, unless told to do so. Cheers, Christoph