Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127852 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 75C8D1A00BC for ; Wed, 2 Jul 2025 21:32:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751491833; bh=ftK/aNAW2rTGMTeU7qYSutqC2mwLTArlh5Dx+hu/hbc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MrGjzpOXXLNATveZQdZWb0y60zU07HMkwf6w6BXJv+7hZSnFL8e6PsSZvWLVIf21v nTbExbI+CMPu9XIcjm/sALOEfVbajbqtQJKp9vRN2LGj53Q4nv86stMvf6ck9W5YMZ JdG+5rRX3HobKEI3JPTdtiSmRnJPANpCCdn3vC24WPWDeZNjk3i6iU//0UzWxEkecm YImllGfw7gPMSOQeT7V0qwck9y+P/g7SBpJw/A0AcXAxfEaAESzzj7Uu/sYjn9nHZO Mw2llx0YoK+WyHLma2+cj/eSzCQEMum873YhljS4Uemk8RADTlU/IABvyVTBNiDlzG 3x6B8G32DVZmg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D5060180047 for ; Wed, 2 Jul 2025 21:30:32 +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.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,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-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 ; Wed, 2 Jul 2025 21:30:32 +0000 (UTC) Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-553ba7f11cbso8690548e87.1 for ; Wed, 02 Jul 2025 14:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751491944; x=1752096744; 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=ftK/aNAW2rTGMTeU7qYSutqC2mwLTArlh5Dx+hu/hbc=; b=BZ35c/ce1GeGDKDw14HpX64dLVYCI4B4zy6aMHQPhV/1ofQRK4Xjf5qay5oiZ5WWYI 7QaYHFPvY7unAjZL3iw7NY2Fzp+WtHfF9XSC/bvtQM9pR26uNY1/D/S6ub+NL0MTv0WZ ww9UBV9gSCQpVcydezY1+Ihd/sw1xrn9dgjFHW0uHFBp0H6A1YZJ8FYNCvpqUCnaJxjm krP76wEBJwguvgi+u89Me3p6+LSruNmYgPU5B4AhZbwcSa3p8OSWwqZrTP0VUXksom7N GfZGI3Yb410RAc+B3f/Y1y6U2Tzm/vocrvhQ+6NXZYegBYzXusVSLh0iI+z/tpXQq4uo pqew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751491944; x=1752096744; 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=ftK/aNAW2rTGMTeU7qYSutqC2mwLTArlh5Dx+hu/hbc=; b=b8+Uiv9abx9QzDZiqIjS2vRMmB1xgKtmWEJyB1VOrgbBRXHtwGDX+lw+S2kV6nTIQ4 pPmo/Mz4rSSMbbFHRnWBhmX/WsDfuk+lJ5rHSED+oEuBxA/m2Xs278snz+ax8+c57hUk 9uXlEaioNmDBnowOA9bwye5PiFNXxcSU1Ym9PVSk/Abw+eJGJN3SWmK2f6gi5iquDsJl FLmE90jemX5P6oF31lFTi2Gp7QS/O4kO96dWTJP1jColNO+t2/yANsy8FK2m4Idr3Qnf TYMmThqrDdVsHYdF8Ygua33rzr/+yRDDt/J7/nRKo1DOBAzkY5jGrXM/TO8qgZQ0d3t/ vFew== X-Gm-Message-State: AOJu0Yz1/F4IekuREzFyJ0Ohca4uTAet88tawTozSGjllt3QVoYKGzy+ KYyG1p5rq+zQ5Vra84z8Ycjblz2fVEIgze6t5b/MKHn27OuW6hdszDx2RvcvG7T+xBTIjCtxKs4 7eBiXRm3ugGOh+vz5yojFRNKBG/To477PhVASu3GuAw== X-Gm-Gg: ASbGncvFiGjHlWS9CsM7DPpFFP2/XZnE0CrO31fuKlin5qq+Hy/JPOrup/8wJDkD/I+ 5NQRRwwOsHrSaCxBr1NXtkFWG3ZRyk7d9JLgVUZshW2O0Lw5zBXtGDUou7f/LnTKmoJZeRdcrHb 8zvrIwmBg+BmTOHSAPC9d9MsIPHWTooE7gD8ewj/Gq6IJ1GdbsCD29iMCf9iYK6XcVgLpiZR4wJ 9iF X-Google-Smtp-Source: AGHT+IHTcxi54s+De178mwPQESWEMnQEyLpvznUR3FoANO4Odhc5m2ZOUEEnDi2RiWwHcoW14E+bqYvDZGltd6DkzVo= X-Received: by 2002:a05:6512:158f:b0:553:2869:3a5 with SMTP id 2adb3069b0e04-5562834ee60mr1658694e87.48.1751491943198; Wed, 02 Jul 2025 14:32:23 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 2 Jul 2025 23:32:10 +0200 X-Gm-Features: Ac12FXxsqRR77hPmu0hRzKHPUvPiFVYvZT9wwMGcQ7jz48orw0aJu_SOJsu4XpE Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5 To: "Gina P. Banyard" Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000019f3150638f8ff20" From: tekiela246@gmail.com (Kamil Tekiela) --00000000000019f3150638f8ff20 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 2, 2025, 21:58 Gina P. Banyard wrote: > Hello internals, > > 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 > > 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 > PDO::ERRMODE_WARNING I am ok with deprecating this mode as I cannot imagine why would anyone use it. However, can I suggest that we deprecate the silent mode too? How useful is the silent mode in PDO? ext/filter deprecations As much as I hate this extension, I don't think deprecating these functions is the right choice. It's not unheard of for someone to use filter_input without the filter parameter to avoid getting the warning on missing value. See the top comment on https://www.php.net/manual/en/function.filter-input.php#115086 Maybe we should just unbundle that whole extension? docref_root Can this still be used for development environment in another language? I.e. point to the manual in localized version? Deprecate using values of type null and bool as array offsets I can see the value in getting rid of it, but this behavior can be useful too. For example $tally[isEnabled($name)]++; --00000000000019f3150638f8ff20 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Jul 2, 2025, 21:58 Gina P. Banyard <interna= ls@gpb.moe> wrote:
Hello interna= ls,

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

https://wiki.php.net/rfc/deprecat= ions_php_8_5

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


PDO::ERRMODE_WARNING

I am ok with deprecating this mode = as I cannot imagine why would anyone use it. However, can I suggest that we= deprecate the silent mode too? How useful is the silent mode in PDO?
=

ext/filter deprecations
=

As much as I hate this extens= ion, I don't think deprecating these functions is the right choice. It&= #39;s not unheard of for someone to use=C2=A0filter_input without the filte= r parameter to avoid getting the warning on missing value. See the top comm= ent on https://www.php.net/manual/en/f= unction.filter-input.php#115086

Maybe we should just unbundle that whole extension?

docref_root
=
Can this still be used for development environm= ent in another language? I.e. point to the manual in localized version?


Deprecate using values of type null and bool as array offsets

I can see the value in getting rid o= f it, but this behavior can be useful too. For example

$tally[isEnabled($name)]++;




--00000000000019f3150638f8ff20--