Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127856 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 3B79F1A00BC for ; Thu, 3 Jul 2025 10:46:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751539473; bh=X7rea5NYI2SHdkIJoumCblGltXvRYovrQ6S2/iaRzfQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SfljhLlLIFQu2AQAB2fUsdjaQ2EAclzNEM72cIgHPJFrl3jQ0afR8n90X83GV/I+t qPEEnqnHGIoSoquzTdnotopGLZ6BhfRXuFpMbFEp3hyhV8fCIgjeJgv4FwzSHwHTip Z3hHT60kuTu+/BKh5lqMwv4dlGpxZaCECbBl3x9XJTqJ7GuUJSbbM5CPmLeF/2Wo3x zGX+3xVvAdh9x0+JLflwqpgFhrhUnTGl/rtI6p2lmh+Tn9NfuppKcjaOW2hFb44WbM gUyszHIgsQg8XZHOeeVzWoREp49W58yMSeMwPQG8dHxRiRx0jxk2GzlROB1rBQDBkG muPA3BFOPTCBg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D1492180047 for ; Thu, 3 Jul 2025 10:44: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=1.9 required=5.0 tests=BAYES_40,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, 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-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (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 ; Thu, 3 Jul 2025 10:44:32 +0000 (UTC) Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-40a6692b75cso4000363b6e.1 for ; Thu, 03 Jul 2025 03:46:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751539584; x=1752144384; 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=LyQ7BvLgfUZ5xb4zFmJx/LLkoEReb82PkuuuY8CrSXc=; b=uOCQhxL0bitDm7G/0p1NEmeFb0ru2HTwBWtJrugtAKaCOrwQ2o1HusdIsFgSxvkjLx F9JJQMRn9AIJKF+oxQo0VMK1DHTdhis5RJ0LH34i34mp4Skr+frb9WzmRlikBnJ/gaej mHjxoG2gWJp1lrbfBVpTLqVPWv4Yj5VUs+NUA8uj6MxiFTWwYjHbzGpWxVs5iUa2bYPk URCpHrJqdLht0fMTo5lUD3xB/bZT3PyK+1QHzR4HZUknJzkDRQ9d7diXXvUQvV1Fi0jU HaERsVKqrreMesOXRhxE9hu6s0gnSHtoKf95Kg60uafVzMQYGIkziDPCasXxzextza6Q /o9Q== X-Gm-Message-State: AOJu0YwTMR+zEOhSt1sysRE0fA7cCqk4rwM7QPMh9KkNRg12/hh3vlpZ ejDpvM+PJTt3DKHB8U6K1f4tHrPRWI9FImRCfob5cDINsNQApF5MisMN1wj/mEZQBTtlEKTkJNK BZPQxtT5aKOnv3dNBY6pM+pQak56y1ty3Z7/x X-Gm-Gg: ASbGncu8nK5aHy9kVzv1nLITzIwP2xEbIO+abKjbgVolp10JhTmPEIiHZd3+PcZQrFN BguFhdAX6tSRd70JYQcwXtADXomdmmf6rvnqj7GbQr6/6J460FXqCRXomMZ/odwjrUWsDWEjIs3 h2qT7U4pIl7plHcyAu7IcQzXOJRdzz55MhCv5wTLchEcU= X-Google-Smtp-Source: AGHT+IG3JKNZ8IxEw21uGftyW9JLZmuIWlqXFxUFP9PpndwPiO+I0jwyl/kFIXXPOCJeM9kMrRW4zh2Qh8kMPc+imKg= X-Received: by 2002:a05:6808:2010:b0:408:fef8:9c9e with SMTP id 5614622812f47-40b88e07fb2mr5487684b6e.22.1751539584176; Thu, 03 Jul 2025 03:46:24 -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: Thu, 3 Jul 2025 12:46:12 +0200 X-Gm-Features: Ac12FXyfRrXc0iVf5M5Uo7Jhfxk-_8UyHjMab_JM5Z69e7S1Zl4XWqm85n1TiXw Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.5 To: "Gina P. Banyard" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000b994ed0639041685" From: bukka@php.net (Jakub Zelenka) --000000000000b994ed0639041685 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, Jul 2, 2025 at 10:00=E2=80=AFPM 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 > > Here are few notes on the ones that I don't agree with: > Deprecate backticks as an alias for shell_exec I think this might be too big BC break that might impact many scripts - would be good to see also if it impacts OSS projects. I guess it will impact even more non public code bases. > Deprecate the __sleep() and __wakeup() magic methods I'm not sure about this one. I don't think it's worth it. It's just an unnecessary BC break IMHO. I would also consider more ext/standard thing rather than language. > Deprecate the error_prepend_string and error_append_string INI directives I think it doesn't have a good enough reason to be deprecated and might be still used. I don't see any problem with keeping them. > Deprecate the report_memleaks INI directive I think this should be kept as one might not necessarily have time to fix it but still need to work reasonably with debug build so it makes sense to suppress it. > Deprecate the $http_response_header predefined variable I think it's too early for this. I would prefer to not deprecate it at this time because alternative is available only from 8.4... > Deprecate filter_input(), filter_input_array(), and filter_has_var() I think those functions might be useful in some cases. I would also like to see their current usage. The case of modification of super global is not exactly a usual thing so I wouldn't worry much about it. Kind regards Jakub --000000000000b994ed0639041685 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Wed, Jul 2, 2025 at 10:00= =E2=80=AFPM Gina P. Banyard <internals@gpb.moe> wrote:
Hello internals,

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/deprecations_php_8_5

Here are few notes on the ones that I do= n't agree with:

>=C2=A0=C2=A0Deprecate back= ticks as an alias for shell_exec

I think this migh= t be too big BC break that might impact many scripts - would be good to see= also if it impacts OSS projects. I guess it will impact even more non publ= ic code bases.

>=C2=A0Deprecate the __sleep() a= nd __wakeup() magic methods

I'm not sure about= this one. I don't think it's worth it. It's just an unnecessar= y BC break IMHO. I would also consider more ext/standard thing rather than = language.

>=C2=A0Deprecate the error_prepend_st= ring and error_append_string INI directives

I thin= k it doesn't have a good enough reason to be deprecated and might be st= ill used. I don't see any problem with keeping them.

>=C2=A0Deprecate the report_memleaks INI directive

=
I think this should be kept as one might not necessarily have ti= me to fix it but still need to work reasonably with debug build so it makes= sense to suppress it.

> Deprecate the $http_re= sponse_header predefined variable

I think it's= too early for this. I would prefer to not deprecate it at this time becaus= e alternative is available only from 8.4...

>= =C2=A0Deprecate filter_input(), filter_input_array(), and filter_has_var()<= /div>

I think those functions might be useful in some ca= ses. I would also like to see their current usage. The case of modification= of super global is not exactly a usual thing so I wouldn't worry much = about it.

Kind regards

Ja= kub
--000000000000b994ed0639041685--