Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130074 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 D51E21A00BC for ; Mon, 16 Feb 2026 19:43:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771271015; bh=9F62UhXW5OyKLULWnfe84DAqPNoowLInBsq2TMNIaRk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ACn1JaGorc/v86emqH0YQhrUwt2nzb0uPXk/mrwgOqnhJieKyULFNH9fWE0EJbJKR UVa6L58DgQEStSo3NG4mLqCtOy1U2xwTBDdQu8eN24BdDnxrCMgeJWG6AcjUqa0j0i 2dPEWwU/gPlXWSlIIaGOVtm33fsx4qqCKXI2aqiKZKj85pXVAHZtWvgCCIi0eFalqC Qreo0rYcOUaI+pyuxjMNfxHWcdksSlaSHRJonJb/m4rafGEkXF/0zKPxcGGYQeutjr oAm8Hqnvqso8A/qsTiXMxTr9vtKWr40tssRQEmmiwvt+UszG5kCSG5hVGO6OvZLHw3 4eAFdlGNbQyfg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BA846180059 for ; Mon, 16 Feb 2026 19:43:34 +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.7 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_50, DMARC_NONE,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-dl1-f52.google.com (mail-dl1-f52.google.com [74.125.82.52]) (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 ; Mon, 16 Feb 2026 19:43:34 +0000 (UTC) Received: by mail-dl1-f52.google.com with SMTP id a92af1059eb24-1271195d2a7so6760546c88.0 for ; Mon, 16 Feb 2026 11:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771271008; cv=none; d=google.com; s=arc-20240605; b=Ar3sTLtTN43MZ2AlGzcUjB/z6N1wJZxrhLw8UErXEkTgdg9kbZlL0hZUMqVghClfT/ USMDL0cMMphJOsZ/RMa3RMsRZvxEkjEOeFAKBTkYiNNrpeb25tnPhAhwcCskDgfKG4Kh qr071DjBzS7a8IEOh6p6UaJnxRNuv5PI7xKcuAXT//r+zjcBPDpXRfWAaZ04hDVgp0Zz d7w37F1m+sITittj0vaCTI/SzrXulkkBSZ3VNx/q3OO25V2BfI+aeWW5io/tXzNuW8t4 v9CgWYPD7QsEr/pYiKObckxemXBNcVtaLBDPxkWbLnpcA5hRVCz04IUwCG1d0YWvDHVi rleg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version; bh=9F62UhXW5OyKLULWnfe84DAqPNoowLInBsq2TMNIaRk=; fh=xX59M9k2LJe5CkjPpBTRX27Ve3+5hYeaIKPXnbjUkb8=; b=C63PRf5ZLsFfobLIXU9AOA1l/YmFLiPHMpNTiyApY0KUpdTapOF07w85+44yBv7Dkd 6mEhnQhI8dO2Q8P70PKeauqxAirB0iN+EMkW0JZ37hviFPruY9HP5v9AXowNQl/lmYbj GHewtRUeafSr0sO7gpCH+qYzYa0k1kHSlkRzhiV//GQD/TqkAsQ/CnidJROqx8n5J/Z3 zLCCiXTts0cd/eWCbO5d3V9TPhLiIfWD8mVAtWmEBRr8xcL/GpVUR068MiiaMpwPrfUT KVoXH/veYFdntSkKqsZBdvf8S11OfyhYGNaEI20eXKSbI7lwjHHWWZ2q4nK8fPSohFtH Kzkw==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771271008; x=1771875808; h=cc: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=9F62UhXW5OyKLULWnfe84DAqPNoowLInBsq2TMNIaRk=; b=nLWA7vW1TD5cxtQH8k6TTt+Hlk56+Fmxqk7zG50s9g1i8KjNCZhtCJxM3MWOVoQFcH fZ8U4FfwYabeqs73HROJX6SgMgqyDXHseJbjB6k/qalUi+VbWxLYdhynPBtsn9ZaGSNo 849r1GxY7cFn1IulT1/GBVpcCbV9XO0x/F559HCyvV9QlQ5pWa7gIMxVcmfd5+4EET3g 1cAVfysKe5VNMFp1/5nz3Ut4Y27mRniGeJuIVI5ayA3ZBM43MTo3BN9PCEMRlsNSTKIJ v4uz0qQmRCe3XMVMdhJeD3+dWeVkrXc4EHtaRJGE4mZAvZuAWTI4U1oDgsFblwSeGgMW iq/w== X-Gm-Message-State: AOJu0YxjDt025q1KFnavF1PgjevYQuFgEAKlpMDiJNivPP4SlU0mJFoX fP1YBGb3KC5hKq8pkGVCeoxeZOAd7Wg5mMvvF6aNL6aU8iHpQwMJexb4/MUpHHSE+A0MU3Phy02 DDyA+g0oqgHmsuQ6lj9scZY028FjIpu442Q== X-Gm-Gg: AZuq6aI0mrq6d4FFKj0IjJCkdjhQKs8bPTClK/H+502tDHKsPdd/7Ejcdnh70MitWoK CsPIjsRDr9+5pn7MrXNz2sZkaOoOWBJdbJJ0xzCXmD1XgQfV9mYNJr28FbFc2sdwqRXbRcS+Iky bcgOt6KGuLBSWAcdLv0+q6BOyZv58MEcb2gib2t4ZaFkIuBVNoEKYx6dJcIHqySwAeaIZOMw7Cg c0GXjKgGpqLHjsb+XGUAdOil/3cxl1c8b3D7R+2Zofpj5qf2+kStdZSJiuQ8/R7YeF9qvggRUtz Tgd/m8I= X-Received: by 2002:a05:6820:1607:b0:672:ef44:4f34 with SMTP id 006d021491bc7-67858fea344mr300123eaf.5.1771010583925; Fri, 13 Feb 2026 11:23:03 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <2d741c45-9c92-4404-a0d5-02bf26a557b1@bastelstu.be> In-Reply-To: <2d741c45-9c92-4404-a0d5-02bf26a557b1@bastelstu.be> Date: Fri, 13 Feb 2026 20:22:52 +0100 X-Gm-Features: AaiRm52qcjzUyUJvAIHYml-nwRsmp-RdZ9lecttkNyKJ9xvJL9icfMls5wou9w8 Message-ID: Subject: Re: [PHP-DEV] [RFC] TLS Session Resumption Support for Streams To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: PHP internals list Content-Type: multipart/alternative; boundary="000000000000bf99d8064ab988ad" From: bukka@php.net (Jakub Zelenka) --000000000000bf99d8064ab988ad Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Sun, Jan 18, 2026 at 3:16=E2=80=AFPM Tim D=C3=BCsterhus wrote: > Hi > > On 12/23/25 00:07, Jakub Zelenka wrote: > > I would like to introduce a TLS Session Resumption Support for Streams > RFC > > that is part of my stream evolution work (PHP Foundation project funded > by > > Sovereign Tech Fund) : > > > > https://wiki.php.net/rfc/tls_session_resumption_api > > Thank you for the RFC. The feature makes sense to me and fills a clear > gap. I'm sharing some of Derick's concerns and questions, particularly: > > 1. What will happen if an incorrect / outdated / malformed > `session_data` string is provided? Will it silently be ignored? Will it > emit an error? Will there be issues internally in OpenSSL? > > So this changed a bit as only OpenSSLSession instance can be passed in. So passing invalid and mallformed instance is not possible (TypeError is thrown if different type is passed in). But if it's expired, it should just result in warning and full handshake. This should be later covered as part of new stream error handling as non terminating error (stored error in exception mode). > 2. We should avoid introducing new E_WARNINGs, particularly for clear > error situation (session_get_cb without session_new_cb). > The programmer errors have been converted to ValueErrors and TypeErrors. There are few new warning but those are for non programmer errors and should be later handled by new stream error handling (another RFC that I have). Cheers Jakub --000000000000bf99d8064ab988ad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Sun, Jan 18, 2026 at 3:16= =E2=80=AFPM Tim D=C3=BCsterhus <tim@= bastelstu.be> wrote:
Hi

On 12/23/25 00:07, Jakub Zelenka wrote:
> I would like to introduce a TLS Session Resumption Support for Streams= RFC
> that is part of my stream evolution work (PHP Foundation project funde= d by
> Sovereign Tech Fund) :
>
> https://wiki.php.net/rfc/tls_session_resumpt= ion_api

Thank you for the RFC. The feature makes sense to me and fills a clear
gap. I'm sharing some of Derick's concerns and questions, particula= rly:

1. What will happen if an incorrect / outdated / malformed
`session_data` string is provided? Will it silently be ignored? Will it emit an error? Will there be issues internally in OpenSSL?


So this changed a bit as only OpenSSLS= ession instance can be passed in. So passing invalid and mallformed instanc= e is not possible (TypeError is thrown if different type is passed in). But= if it's expired, it should just result in warning and full handshake. = This should be later covered as part of new stream error handling as non te= rminating error (stored error in exception mode).
=C2=A0
2. We should avoid introducing new E_WARNINGs, particularly for clear
error situation (session_get_cb without session_new_cb).

The programmer errors have been converted to ValueErrors = and TypeErrors. There are few new warning but those are for non programmer = errors and should be later handled by new stream error handling (another RF= C that I have).

Cheers

Ja= kub
--000000000000bf99d8064ab988ad--