Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124230 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 7A6BD1A009C for ; Fri, 5 Jul 2024 17:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720199571; bh=8isZwcs1ffZCvBjFwes/3h8rwqpTbjppE0Howjy29+Q=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=G9nB0b8gcfr7GkiBwCkoye/IK1sbVp1vY3s0hw0UWja3Vz9A5QaPv2I+f7TnniDha 57uI7y/bPXrIPXyTw5rYeD1phW3TTbeDBfRFnYX+Vk0INqaaKkkvX5bOBvTrDh1euH NgxjvMtnTVHYfVErSZOeXs9rENyiJ0n4HTba/HZQg6Fm6+QeoOJwDSvqKgjryJKrxK 21CLvU42YTCYF2CDX1qL5XunsiBZp1Jvypgu1YywWgPnuMd2mNpF6iJCDK9C65Z1z8 Li8rF7xAktgc07bXg1Qn6aAAHjongtGYPYBmDluMtaTBbfWFz/sOnbun5yveI1xOAh Z9w73Vp8HTn+Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 82BC6180077 for ; Fri, 5 Jul 2024 17:12:50 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 5 Jul 2024 17:12:49 +0000 (UTC) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-58c947a6692so2523767a12.0 for ; Fri, 05 Jul 2024 10:11:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720199485; x=1720804285; darn=lists.php.net; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=nFPn1WIQHexBBB6eXuwZwNKMfYtWGp3dRMsnCmduwXU=; b=SEn56/d8J8KP17KiGq3w7AOLfbxOdkuS4Jjm515FU7mOCd0U3alLi5YTXxkw6qaEiv FEr3Lwaw7x/IC60h919xPPG9nnJfDO6z7drc1h0d+h7q0rxFUT2c404AxfzZKeGl9Wr8 uDwF7dM3J6Eec4Zg73aAYT73vkUPtMFwb/rVGKaPjaKbtHCh36kFf/758l9NJHK78VgU gCZal7ZK5wNCBKrmD2eKqf1aU5NUwZhwMx9bY7zFnZ9EWK9esF6upwV+AegkmHRurVKm DBaaMy2eNkM/6cMiCRNN/weN8oY4JRNN2OPuCCPLYb4BvTD0MRA23eYh9SMrKuP7vfNs AfCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720199485; x=1720804285; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nFPn1WIQHexBBB6eXuwZwNKMfYtWGp3dRMsnCmduwXU=; b=j72SwTxJk03jfgFxhrXd3DQReum6AJIGo/+Wds7sVFDe586OJWVRLYq4aVad/8T1Mq uXZP1Elv6LtRRz7qOGYKeNORNk0td/i8AqYGTk9/N/oUF85FY/mkye4eh36T7NSnkp8I k2oknhMmydvge/ol4T+ZtSON/Wa/ilHj7nOupfztdKrkpbFsOIxqoRMIBZV0ehij9pJh K1tysubz/JML41yXDHGaiWuotEwFjwq9asCzwhYlAQrc7+rTUEMX3MJfrd5SszteEV/p jfPxJnN3srED1qPzQHeRBqaZp71F2KXM1j2FJU10hLTS4/KRZF4SDMhtXAkg+DNY8NI9 Ywfg== X-Gm-Message-State: AOJu0Yz35LQFg+CoPkg6qd6+O9DmcoOUbi6EhPt/T2xwUsb/9UxlMgcd YgtWHjm3IogGj4oT+ZLKzH/7ZI1z/b5ez7WXDx62L94OX+zYawsubMSSmA== X-Google-Smtp-Source: AGHT+IEQB84PTqqcbQBbMEECedUdzo/iCL2Po3Os3YOORJs09fI2vMrx4vvPllEkcIG+/jj6tS9uDA== X-Received: by 2002:a05:6402:35d6:b0:58d:77e0:5c17 with SMTP id 4fb4d7f45d1cf-58e5b4a582cmr4187563a12.21.1720199485130; Fri, 05 Jul 2024 10:11:25 -0700 (PDT) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-58f90b20091sm1088047a12.45.2024.07.05.10.11.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jul 2024 10:11:24 -0700 (PDT) Message-ID: <76838718-E108-4A08-A88F-4965FB81E52C@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_4AD2AEC3-0881-4A98-B4D4-97E3D4C979BA" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4 Date: Fri, 5 Jul 2024 19:11:13 +0200 In-Reply-To: Cc: PHP internals To: "Gina P. Banyard" References: X-Mailer: Apple Mail (2.3774.600.62) From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_4AD2AEC3-0881-4A98-B4D4-97E3D4C979BA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 25 juin 2024 =C3=A0 16:36, Gina P. Banyard a = =C3=A9crit : >=20 > Hello internals, >=20 > It is this time of year again where we proposed a list of deprecations = to add in PHP 8.4: >=20 > https://wiki.php.net/rfc/deprecations_php_8_4 >=20 Hi, * For each deprecation, it would be nice to provide explicitly the text = of the deprecation notice so that we can guarantee that it will be = helpful for users, see https://github.com/php/php-src/issues/14320 * I don=E2=80=99t see the point of deprecating = DOMImplementation::getFeature() instead of just removing it? = =E2=80=9CDOMImplementation::getFeature() is deprecated, throw manually = an Error exception instead.=E2=80=9D * About strtok(): An exact replacement of `strtok()` that is reasonably = performant may be constructed with a sequence of strspn(...) and = strcspn(...) calls; here is an implementation using a generator in order = to keep the state: https://3v4l.org/926tC =E2=80=94Claude --Apple-Mail=_4AD2AEC3-0881-4A98-B4D4-97E3D4C979BA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Le 25 juin 2024 =C3=A0 16:36, Gina P. Banyard = <internals@gpb.moe> a =C3=A9crit :

Hello internals,

It = is this time of year again where we proposed a list of deprecations to = add in PHP = 8.4:

https://wiki.php.net/rfc/deprecations_php_8_4



Hi,

* For each deprecation, it would be nice to provide explicitly the text = of the deprecation notice so that we can guarantee that it will be = helpful for users, see https://github.com/ph= p/php-src/issues/14320

* I don=E2=80=99t = see the point of deprecating DOMImplementation::getFeature() = instead of just removing it? =E2=80=9CDOMImplementation::getFeature() is = deprecated, throw manually an Error exception = instead.=E2=80=9D

* About strtok(): An exact = replacement of `strtok()` that is reasonably performant may be = constructed with a sequence of strspn(...) and strcspn(...) calls; here = is an implementation using a generator in order to keep the = state: https://3v4l.org/926tC

<= /div>
=E2=80=94Claude



= --Apple-Mail=_4AD2AEC3-0881-4A98-B4D4-97E3D4C979BA--