Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123882 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 08DE01A009C for <internals@lists.php.net>; Wed, 26 Jun 2024 19:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719429992; bh=CjU8BYuZvpXi7ZHVikilDEEAUMp+P0EI7sTfCiVBuZw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Uqrky2OYb1XBnBui3vSKjDSVhBVySmbL4kowMAf6CKtEOAEMm0C3osUmF9GyT3f4M vzN0fyLeXQ9thbJJqaEG/8j/mJ1QOcbDwOEVMK8r28ciEP5mSibUZ6e5+yZ73Zi7ku cf2BbYYWOBOzHMnMsNrZXpgx04NP1YYr9TAF/vG0IGEWXpVvV9BboBRGJIY//EI38y SJu/93dOEwuQhRIVkxkLCPiut19Y3xMV0Dy4kO6ig2JMEcEGRfpPctq8jtJC7fRvmi kB/6W+c30pDlJi4zLTLQQPPlVGTLYD6doAagPZAa7Vf1BmtR4G9gfTYnuRLn+fp5RW 32sxC8kNPtlEQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C2A3F180F85 for <internals@lists.php.net>; Wed, 26 Jun 2024 19:26:31 +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_H3,RCVD_IN_MSPIKE_WL, 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: <morganbreden@gmail.com> Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 <internals@lists.php.net>; Wed, 26 Jun 2024 19:26:31 +0000 (UTC) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1f9aeb96b93so48951085ad.3 for <internals@lists.php.net>; Wed, 26 Jun 2024 12:25:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719429913; x=1720034713; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CjU8BYuZvpXi7ZHVikilDEEAUMp+P0EI7sTfCiVBuZw=; b=HMhycLx/HqKGlBTgrBD8kWPDd6IKrnezGVP1zhtAfwJY8Mdp2cpELRS6jENUzPEnci QKhztizTHC8DrvVsirzB8QGnYy6lVkK1xWoFbZQ/gUXcAntxjkmyNOC6ZmMNIZc3C16S uoecYpE8+N97IJO3t8aTERz/zoSDMoy/0JeqIg2G8aeP4QVgi3amiLqujRIeaMmipAgM Uw4anOMWJYYItXRoV0AlBZw8VEobzlyI0fC2dA9qCoPCb/ABuXgYTOo0QQFJXlDPM3Bv 44l/g4jojdL7qB8DsuY1LCn2CbPzhJtZ7MFGpxeLtjVrJVMwTMZyS+NDd/GTDow+mjZE Yelg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719429913; x=1720034713; 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=CjU8BYuZvpXi7ZHVikilDEEAUMp+P0EI7sTfCiVBuZw=; b=EwXLODdTk9+pZj4AGAjDBq4Wfdmz3TIXOeH/594Feet/fqw1G8vrP5NgS2GKPyRlPO yZ14ls3VlCCdvxqqr+qJ+d5KPPZNzizWW+JTrV2hG1HgxsU84HL9SqGhqd/OOHL2ip2W OLeBpisRkce9z6MsO017x/J6r6GhZx/QsMt/ijXcmGORumw7JmmebZDV81/NluLxxKc7 Jo7P/23OH6IcgAHjYjSWqws4ruaR1ZpDKfYlPS9+PR4MrRlx4Qa2FNK+cWxibsUi7KRV iJlUoX9n0av46CVcYLz5x0bnYleeSINa/0zfYGhl7YQE3kiMJnHnJey4PmufWD+z5SPT a0FA== X-Gm-Message-State: AOJu0YzGuuy/QUVJvl+2BuPRQAyZVLMG3hoy6nVvZwm2yInaPVCwx1yV jIGTMy5ppMjcytTKF4qkWOEjovQciOulZJGNM5+Cgj59B35rYx0rdT1C5gozaI3of7mWuj14OGJ DI4/s3WGnf3YcIAOs70z5YXFYUWb5Cw== X-Google-Smtp-Source: AGHT+IEw791dy3fxsuKIH8XrGyLUSkoIQF/E9rLLBkTcNuO/Ws5+hrAnlkX8N/9WsxOg7yUvhi0Q/KXZgg03ZlxGn7o= X-Received: by 2002:a05:6871:7403:b0:25a:3fb4:ccee with SMTP id 586e51a60fabf-25d06cc05f0mr11778363fac.30.1719429578218; Wed, 26 Jun 2024 12:19:38 -0700 (PDT) Precedence: bulk list-help: <mailto:internals+help@lists.php.net list-unsubscribe: <mailto:internals+unsubscribe@lists.php.net> list-post: <mailto:internals@lists.php.net> List-Id: internals.lists.php.net MIME-Version: 1.0 References: <bw20I5b7ly3lSbI-2Bv3kfrfTVJbDo5RhwBiQa1PEwuLjprDJWptPajLiaialj1RLVKu7z1j0MofJUhhRVtzT_5i2E11oKeQx_VMUxnKhUE=@gpb.moe> In-Reply-To: <bw20I5b7ly3lSbI-2Bv3kfrfTVJbDo5RhwBiQa1PEwuLjprDJWptPajLiaialj1RLVKu7z1j0MofJUhhRVtzT_5i2E11oKeQx_VMUxnKhUE=@gpb.moe> Date: Wed, 26 Jun 2024 15:19:27 -0400 Message-ID: <CALGLHq1oQs6J3FLKPegVrgDbxt0qCVGxpSb2_JTvf0c_wH3taw@mail.gmail.com> Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.4 To: "Gina P. Banyard" <internals@gpb.moe> Cc: PHP internals <internals@lists.php.net> Content-Type: multipart/alternative; boundary="00000000000039e754061bcfe57a" From: morganbreden@gmail.com (Morgan) --00000000000039e754061bcfe57a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I do not believe it is appropriate to deprecate strtok() without a proper replacement. While I agree that its signature is undesirable, the suggested replacement functions or =E2=80=9Cjust write a parser=E2=80=9D are not very pleasant so= lutions to fill the void it would leave. The stateful functionality it exhibits is incredibly useful, though I will admit confusing. Would it not be better to change how the functionality is accessed to reflect the fact that state is preserved rather than remove it entirely and force a performance burden on developers? On Tue, Jun 25, 2024 at 10:38=E2=80=AFAM Gina P. Banyard <internals@gpb.moe= > wrote: > 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 > > As a reminder, this list has been compiled over the course of the past > year by various different people. > > And as usual, each deprecation will be voted in isolation. > > We still have a bit of time buffer, so if anyone else has any suggestions= , > they are free to add them to the RFC. > > Some should be non-controversial, others a bit more. > If such, they might warrant their own dedicated RFC, or be dropped from > the proposal altogether. > > > Best regards, > > Gina P. Banyard > --00000000000039e754061bcfe57a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">I do not believe it is appropriate to deprecate strtok() = without a proper replacement.</div><div dir=3D"auto"><br></div><div dir=3D"= auto">While I agree that its signature is undesirable, the suggested replac= ement functions or =E2=80=9Cjust write a parser=E2=80=9D are not very pleas= ant solutions to fill the void it would leave.</div><div dir=3D"auto"><br><= /div><div dir=3D"auto">The stateful functionality it exhibits is incredibly= useful, though I will admit confusing. Would it not be better to change ho= w the functionality is accessed to reflect the fact that state is preserved= rather than remove it entirely and force a performance burden on developer= s?=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">On Tue, Jun 25,= 2024 at 10:38=E2=80=AFAM Gina P. Banyard <internals@gpb.moe> wrote:<= br></div><div><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" = style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:s= olid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hello internals,<= br> <br> It is this time of year again where we proposed a list of deprecations to a= dd in PHP 8.4:<br> <br> <a href=3D"https://wiki.php.net/rfc/deprecations_php_8_4" rel=3D"noreferrer= " target=3D"_blank">https://wiki.php.net/rfc/deprecations_php_8_4</a><br> <br> As a reminder, this list has been compiled over the course of the past year= by various different people.<br> <br> And as usual, each deprecation will be voted in isolation.<br> <br> We still have a bit of time buffer, so if anyone else has any suggestions, = they are free to add them to the RFC.<br> <br> Some should be non-controversial, others a bit more.<br> If such, they might warrant their own dedicated RFC, or be dropped from the= proposal altogether.<br> <br> <br> Best regards,<br> <br> Gina P. Banyard<br> </blockquote></div></div> --00000000000039e754061bcfe57a--