Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129290 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 E66E31A00BC for ; Tue, 18 Nov 2025 19:34:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1763494450; bh=DWLVf9WjsJtGIvd5RaG6pOCYyVZ6JqYnvo+NvZge6i8=; h=References:In-Reply-To:From:Date:Subject:To:From; b=YOdZINiQrHGDYrCanl5g8IqAYSXtJc9PNY/xXZ64CU2Isl0gEtUIFxEXv3APVfPGA +C2SrzMTkvDUB1mA333Oay5RmHCl+wAD5VqOAyKMRVepL49taGLLYgrj6TE/8+TKll O+s0zC3Kq8YNqbzIUW1B1W+J4o6zfb+h1C+jwt7ifw6cR9YRrwP/vncBy19T69jYSh p9WDbfXQrH/ccnsuuQQREi7RMmm8D6PXNhHIQbrdFSg1KQ1bwatqz+jE0vUItNmpyT FRCFrp5T2AFk0xYfmHLpUMSCOJidJyC03IRvE0Z6DIpH4QYbaqeEuEMOpLANCyBrVM zfXekzO+n5exg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CFBFE180392 for ; Tue, 18 Nov 2025 19:34:01 +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.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_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.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 ; Tue, 18 Nov 2025 19:34:01 +0000 (UTC) Received: by mail-io1-f51.google.com with SMTP id ca18e2360f4ac-9486251090eso217346939f.2 for ; Tue, 18 Nov 2025 11:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763494436; x=1764099236; darn=lists.php.net; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=DWLVf9WjsJtGIvd5RaG6pOCYyVZ6JqYnvo+NvZge6i8=; b=GAVn/I+KspOPISQo5h51UvyXek0g+rjnK77M4mySM/++O6De9Hr38a2TmTo7CSqL+0 To7I9eq64Yh3g43ualqyDoUJfJLn6F4olbKdZh+BteH7WuzyNV612pPX8oiTDwV1hBG3 TmpxYqHu2TItv/cyhreWneIX20utPLfpltzP6bHBwWLsJ8iG2rnUXx/Sje5uj7L91OTu DRN8i2IYfB/dHA37dGqWoqaCaujEm3NJEuIMtxm9HWyo875GX+8bc9BmQ1fWxG/7t/G7 DoEz+Y10liRFm8WavxaOsDNJZUwp0eaN4In++ETdNOjkJf9j2PrPiyPWCXktMPhTmnOB GP8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763494436; x=1764099236; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DWLVf9WjsJtGIvd5RaG6pOCYyVZ6JqYnvo+NvZge6i8=; b=d6QVZJuxChnuKwJto3FYoGAwIVr/enDHRuxtQjb1JAVeoVczQa0f6eEPCfkbb7x4OV dXyRZoeqkCDWexpbVM2QHHVVxM6ezsj5oCdBbTpMFIbP57p0289eZwr+qwypW4HKdITO XtXiD5HBmdEZvdggsN2c4PSjaa/x6ptQ8DuGO1LRUMs8m29LZYAkk/1CVu3KzOf6+Esv rsr6s3B8venWRNdSyhaklb7VZj1Li71EeKAd8wMZmsgKuic/VPGf3Yu9Kux8y0AUOdsG 7gFPzhxHORJUi3dcto+tnIe+qy0j0rXrMB+xrUce8adO6LNryZJCluBZNMksN7iUVATD vQsw== X-Forwarded-Encrypted: i=1; AJvYcCUwez7I5i8Hn7OLshy+3/BATDwfbdVtLUrs50cSTMalMLiPmKZSQDSFExgerPWoZTM/0tnyaI2OAxo=@lists.php.net X-Gm-Message-State: AOJu0YwsW+QTdPPn3Dh4kYIeEF682BPNNXRnTKHN/Qo1Nrxcj2cAhQO8 fHj2uCtKN4/8lxxUoUQyCu77ii/dlbJyW8RlBM+5szrGzBCfAm5eRnkGh9tjpEnY7tOZpGT/077 D5sr/wmuwTgm8c5lVePuhTzI48K+wXa0AiA== X-Gm-Gg: ASbGncuH3L+75RT6BqkqPFAjXzHqufZ5VpidjebF89UE0bzbvRYIzCpNSnYsKfckQN0 k9afgqJ8CWG3dpcOPZ+q6eKyuDAfwc/Lde6x/O6emFPuXAdsGXsxqj8MYg686b/QI8KNygmwoHE n9+DWi8YeQ5L9PMHJkYBsW5kLH9DzHOWB97Dyepllgsvr9pcCWIAZNMyGly9e9Wqj0madT5wTxe wJwIiIprzfozgzxgbqlEgosE8sDCfEO4KVLdBjJI6upGF3BwRgdglJkwkTvBi6ZNStsgPbJWowl WPGZAe8N3ueSwzPpQdDY/Y+dImw3SmLfl9cyNgO3 X-Google-Smtp-Source: AGHT+IHI0wvw1wDEBged5QfOuJhD3IO0Lr2Kz5Sm04eJIK9tG6PHEYfmFyHiXPb77vBiv3FE2SiJgsLffKXE4GMjT/c= X-Received: by 2002:a05:6638:c1e7:b0:5b7:3ab8:b3e6 with SMTP id 8926c6da1cb9f-5b7c9ca1394mr14804334173.5.1763494435707; Tue, 18 Nov 2025 11:33:55 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 18 Nov 2025 20:33:44 +0100 X-Gm-Features: AWmQ_bmIQH00jEP3-N6itdh5euOir3BxwzZ8XVFlSDgZ7Cgd8mo_ySHWfhpwFdk Message-ID: Subject: Re: [PHP-DEV] [RFC] Stream Error Handling Improvements To: Jakub Zelenka , PHP Internals List Content-Type: multipart/alternative; boundary="0000000000006761490643e38b97" From: nyamsprod@gmail.com (ignace nyamagana butera) --0000000000006761490643e38b97 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Nov 18, 2025 at 7:41=E2=80=AFPM Jakub Zelenka wrote= : > Hello, > > I would like to introduce a new stream error handling RFC that is part of > my stream evolution work (PHP Foundation project funded by Sovereign Tech > Fund) : > > https://wiki.php.net/rfc/stream_errors > > Kind regards, > > Jakub > > Hi Jakub, This is a nice RFC. Since I use a lot of PHP streaming capabilities I am looking forward to its voting outcome. Having said that, did you think, instead adding more constants in the global namespace, of using Enum as an alternative for error code. There is a precedent for that in the new URI extension, This would reduce the number of new constants added and perhaps make for a more modern DX for the feature. What do you think? Best regards, Ignace --0000000000006761490643e38b97 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tue, Nov 18, 202= 5 at 7:41=E2=80=AFPM Jakub Zelenka <buk= ka@php.net> wrote:
Hello,

I would like to introduce a new s= tream error handling RFC that is part of my stream evolution work (PHP Foun= dation project funded by Sovereign Tech Fund) :

https://wiki.php.net/rfc/s= tream_errors

Kind regards,

Jakub

Hi Jakub,

This is a nice RFC. Since = I use a lot of PHP streaming capabilities=C2=A0I am looking forward to its = voting outcome. Having said that, did you think,
instead adding m= ore constants in the global namespace, of using Enum as an alternative for = error code. There is a precedent for that in the new URI extension, This wo= uld
reduce the number of new constants added and perhaps make for= a more modern DX for the feature.=C2=A0
What do you think?
=

Best regards,
Ignace
--0000000000006761490643e38b97--