Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124666 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 19E3A1A00B7 for ; Sun, 28 Jul 2024 17:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722188803; bh=Qs1QsN8/8tA2pL9MKHwjqF7b0ubu/8a9jhVMMLpDSEw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=S2AM4jwxrIE8fMRsck/GrGGSgtHil324iciTtQssHTfPdAFRQVmQ24BeJCv1C0Bko dsruJ6iqKtwHNPvoWXm1km3hZpZic2Ao/Kq6sNjWtc17OX/hXIzOsSsaE61e/3diK1 cr9AOXJjmVwnDSz/6cAP4INCW3fBOFBPgbjHU1nylAOy6ifBYuBSz/uK1cBGMOzKWP khjXOWeQq4c6E0hGpGs7XQTMpXJ95hue4yo58bq2whGYceCaccYrDc58JUo1CVrGfX XKuEx8TNBarG+jJS8I4mD567FAu4eKsC+1RZusu8NGuQZ3wZpOwod3NtAfeZFm1qpT L63VZj91ZE8BQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9EB9518003E for ; Sun, 28 Jul 2024 17:46:42 +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=1.7 required=5.0 tests=BAYES_50,DMARC_NONE, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f47.google.com (mail-oa1-f47.google.com [209.85.160.47]) (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 ; Sun, 28 Jul 2024 17:46:42 +0000 (UTC) Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-267b7ef154aso1866727fac.0 for ; Sun, 28 Jul 2024 10:45:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722188705; x=1722793505; 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=Qs1QsN8/8tA2pL9MKHwjqF7b0ubu/8a9jhVMMLpDSEw=; b=D2yH/ACklMtV8cCaRKaaMjaJZbURIfbaJ+lfCOaUV1sezqXvQeTb9mfktkyOXw+8ov rQksSpKJnEtOEcM/kMjml6gPOmmN3SHpwp5oIuODp1r/plvgOeYzuJ6uPmnw81pnWcgh rRYc0zPqqkyKct4Ig3+diT3FH4h9jKnn37Noj8kbG9xpjlOvcCjUmkqLN7nw0pGkg1xd EwHLXJob9NQnu/x3Ll8lo++jeT0A84uqoDUAAu1hzSx8PD5e3h8nXBiPtD+3uSt5KKbc 073VgixKgJbQKQchv0MxD+vRhe8vGF0XlAOQ+yuBM+uVKkITRwVQrJrWYNDOfGbr7nf/ Ol1w== X-Gm-Message-State: AOJu0YyMx7QXgNYpcI9MgQUr0VdrcPIC7F4xFYcsK/qSgGJwa3ti519R QlrydSbAcZhe+hN0Yd1bh+AeAJ9ysO3NZ5rw+pGQgszLdXUXLWTjS/KLSIs0WikbGIACkPlY+GK ja5ENeRJud02VE2DgZOvp/LNMPN4mv0DT X-Google-Smtp-Source: AGHT+IF3yfdnlgjDTe1xQhOAx0dEe7fXjenCPeJJ6BQUxSr565sS+M/Cs14mR8SukZmzCpgOFY6ST0L72sQJjwmiK8Q= X-Received: by 2002:a05:6870:a104:b0:259:8b4e:e71a with SMTP id 586e51a60fabf-267d4f3a9c4mr6529102fac.46.1722188704598; Sun, 28 Jul 2024 10:45:04 -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: Sun, 28 Jul 2024 18:44:53 +0100 Message-ID: Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 To: "Gina P. Banyard" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000f950b9061e524dd2" From: bukka@php.net (Jakub Zelenka) --000000000000f950b9061e524dd2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Mon, Jul 22, 2024 at 11:59=E2=80=AFAM Jakub Zelenka wrot= e: > Hi, > > On Fri, Jul 19, 2024 at 6:42=E2=80=AFPM Gina P. Banyard wrote: > >> Hello internals, >> >> I have opened the vote for the mega deprecation RFC: >> https://wiki.php.net/rfc/deprecations_php_true8_4 >> >> >> Reminder, each vote must be submitted individually. >> >> > > I voted no on those output handlers as there might be potentially better > solutions. The whole output stuff needs a closer look so I think we shoul= d > wait on this until the review is done. > I just had a bit closer look to output handler working and the text is actually not correct and does not exactly reflect how things works. Interestingly those two suggested deprecations have associated functionality that can be seen in the following example: https://3v4l.org/X91eu This simple example shows that returning false from the handler have a special behaviour that can be in no way replaced by throwing exception. What it does is that it flushes all buffers and does not trigger any error as far as I see. It also shows that output in the output handler is not actually always discarded and can be actually used to append text which might be actually useful functionality for some users. This is just finding from looking and testing things for around an hour and half of my time so I might missed other bits. I really think we should first try to properly understand how the whole output handling works before doing those sort of deprecations. The RFC should then contain all details about the edge cases so voters can do informed decision. I would suggest to take this part out and at least delay it till the next release. Apology for not taking look sooner but I have been pretty busy until now... Regards Jakub --000000000000f950b9061e524dd2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Mon, Jul 22, 2024 at 11:59=E2=80=AFAM Jakub Zel= enka <bukka@php.net> wrote:
<= /div>
Hi,

On Fri, Jul 19, 2024 at 6:42=E2=80=AFPM Gina P. Banyard <internals@= gpb.moe> wrote:
Hello internals,

I have opened the vote for the mega deprecation RFC:
https://wiki.php.net/rfc/deprecations_php_true8_4
Reminder, each vote must be submitted individually.



I voted no on those output handler= s as there might be potentially better solutions. The whole output stuff ne= eds a closer look so I think we should wait on this until the review is don= e.

I just had a bit c= loser look to output handler working and the text is actually not correct a= nd does not exactly reflect how things works. Interestingly those two sugge= sted deprecations have associated functionality that can be seen in the fol= lowing example:=C2=A0https://3v4l.org/X9= 1eu

This simple example shows that returning f= alse from the handler have a special behaviour that can be in no way replac= ed by throwing exception. What it does is that it flushes all buffers and d= oes not trigger any error as far as I see. It also shows that output in the= output handler is not actually always discarded and can be actually used t= o append text
which might be actually useful functionality for so= me users.

This is just finding from looking and te= sting things for around an hour and half of my time so I might missed other= bits. I really think we should first try to properly understand how the wh= ole output handling works before doing those sort of deprecations. The RFC = should then contain all details about the edge cases so voters can do infor= med decision. I would suggest to take this part out and at least delay it t= ill the next release.

Apology for not taking look = sooner but I have been pretty busy until now...

Re= gards

Jakub=C2=A0
--000000000000f950b9061e524dd2--