Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127875 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 lists.php.net (Postfix) with ESMTPS id 6C21C1A00BC for ; Fri, 4 Jul 2025 09:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751620159; bh=FL5OYDWHDcxGN5ZcHsRmNHPF5jG8F0jrQQHX8PO5TT8=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=Zb1PlH1Uj4XBc3ePLaRwx7QMoXrB0+4IHiqG7XM9jF+wtM2JFDPYu6KLDeVV5UKPt B7t1p/R3eyJeU6bJrddUqaaXOL02g/DV21oPzmIv/Wye9l0cbNCkm14Rz/1NQAP7td W3yn3/b46/ZNGKJvm2nA/Jd1uBbsdhdz3t0KG+Uq0htsWpOWYZnihfDqblWAKWVQby /D3TvwzcaZRxH7Ya2hNaYlyWV3aBi26KRKJIEnT4K9n24jPGGDm70N52rGqDanwFzo g/c7fth+oBwNBWzgimFJ4HiqZyIGxYaXS2ttVAt586XFnV56AZWsvfpTp75Z3YEW9a A2NDanEGt0roA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9D1E2180083 for ; Fri, 4 Jul 2025 09:09:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.4 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 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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, 4 Jul 2025 09:09:15 +0000 (UTC) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3a525eee2e3so382198f8f.2 for ; Fri, 04 Jul 2025 02:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751620266; x=1752225066; 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=onEVTZGeULTCa40t0YxAP/ygmqq8KaILq9rpA1mkVhw=; b=IKZoYz1nVL+CqjiR8kKRtPCbF/EVrutoVZwaIQKeKynAwVeUII9pozkc8ZkGf714ik 0LxgqnLZY+N9kuY7pgzqZrqElIUckA4svvF7oyLNts39L2f0mpr6p9AdUOTzXJXBNQEb 1OgJ4hbUJJJuGrBClCmsJT3vGFV7345BcH2FDudoWmyRsW5pSW6LPCLOLHcbW6unPpGS XUr71rChGFcDdFzi/3oCfvhmkYWondTW8JKnes/1A1lBaZkY3PmOR+q4ckdssoHlWrE7 KH1vwiGw6lWJ5ddPhg5R3ozDQiqU4jqek9lGJRVbfgi0tnT7k9kmmKN9J44JVE8EwlvV hQRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751620266; x=1752225066; 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=onEVTZGeULTCa40t0YxAP/ygmqq8KaILq9rpA1mkVhw=; b=Uf27OOHRO7GtPX07BksMWQimXUQIofa8AH97KDWrFfQ+1U4Bdk+anI9LO8m131oCh1 3z58Irfh7om20+1lo9HhXcqNuzxved4YUz4Txp3e/iZ/NDUZOh5qoiGwd6bSYkeks+Wd MGlbmpKmig85GaEaCLv7NxUP7y99kZP5CHR7XdIeBKIJpolfJ/Xym1yAjdG+YDYN5bLd J4LIBSYerY4BHIQTUnHHxr80D8+MYQwpo/WIFRyxRgOfpAi8ynva1Ajm2tcVYsqyEtk4 vZhvhEaLPyGWCPyqL2vPqkXaSpimJbxrGVwoyS9ZLjGEtEqlHwYBynbHwfskpDwn0We4 8yGQ== X-Gm-Message-State: AOJu0Yy0DlRANxmeR/IYPoXs5sclySYEa4drG9l8elpCee6yKJT5hfPl DpAPd69xi5tk0Z3cQVHRJC9VeHeSktDNR8C67EMYRT0pmxcGLZMRZi/8f8x5wg== X-Gm-Gg: ASbGncsLR92tKRSoF4cxvuCMpjh45J6zQejPo2hplf4Jd5YISBi++EL7emrZy3jCNSR 3Yj0SVI6XizvxyNROQPFljKzopy9SSKERsJh2RWO5Sk/hJ5iPeoFo7CtE2XDW1A2kyVdqks+wrb ssasILiWdcB7yruIAiqwFA32YUdAESryArPgeTPx+53hyrr0udHT0SmIiNmFrJGFDOFjZfj7BPn QrkUVdL9AJ8FGNkVxVBM4EWx/qqL1ezruolhuUA6hjAKPlIky8dep3UyZG2qGpZJPE4WqTWMAlr I1RBIuI+O3fpbMRugCid66279xEtdS1pdZsfVR03J4M09CtqI27uDmssJo9uW7OHtqB7eHpgGvj aGeUM X-Google-Smtp-Source: AGHT+IHTA5G5QxVKess0pNn1W8CBD3vko6aauZJ69v1krfn90zpSSRjcVXv6FzLI+ELG4rMeVR8sng== X-Received: by 2002:a05:6000:4703:b0:3a5:1cc5:4a17 with SMTP id ffacd0b85a97d-3b4964e2d90mr1401911f8f.42.1751620265314; Fri, 04 Jul 2025 02:11:05 -0700 (PDT) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b471b97732sm1995905f8f.59.2025.07.04.02.11.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jul 2025 02:11:04 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_EF631458-F2DF-4E3D-AA1D-E1F2304FD346" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5 Date: Fri, 4 Jul 2025 11:10:54 +0200 In-Reply-To: Cc: PHP internals To: "Gina P. Banyard" References: X-Mailer: Apple Mail (2.3826.600.51.1.1) From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_EF631458-F2DF-4E3D-AA1D-E1F2304FD346 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 2 juil. 2025 =C3=A0 21:56, Gina P. Banyard a = =C3=A9crit : >=20 > It is this time of year again where we proposed a list of deprecations = to add in PHP 8.5: >=20 > https://wiki.php.net/rfc/deprecations_php_8_5 Hi, To reduce noise, I=E2=80=99ll be short. General remark: For each deprecation, please research first if it=E2=80=99= ll break code without easy replacement. Then, please provide an explicit = deprecation message that will point to an alternative. Some cases: * __construct() in interface. Useful feature, see: = https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static * FILTER_CALLBACK: Useful in filter_var_array, as pointed by Rowan: = https://externals.io/message/127849#127855 * filter_input(), filter_input_array(), and filter_has_var(): What if I = want to operate on the original values of the superglobals? =E2=80=94Claude= --Apple-Mail=_EF631458-F2DF-4E3D-AA1D-E1F2304FD346 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Le 2 juil. 2025 =C3=A0 21:56, Gina P. Banyard = <internals@gpb.moe> a =C3=A9crit :

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

https://wiki.php.net/rfc/deprecations_php_8_5
<= /blockquote>

Hi,

To reduce noise, = I=E2=80=99ll be short.

General remark: For each = deprecation, please research first if it=E2=80=99ll break code without = easy replacement. Then, please provide an explicit deprecation message = that will point to an alternative.

Some = cases:

* __construct() in interface. Useful = feature, see: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-ne= w-static

* FILTER_CALLBACK: Useful = in filter_var_array, as pointed by Rowan: https://externals.io/m= essage/127849#127855

* filter_input(), = filter_input_array(), and filter_has_var(): What if I want to = operate on the original values of the = superglobals?

=E2=80=94Claude
= --Apple-Mail=_EF631458-F2DF-4E3D-AA1D-E1F2304FD346--