Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130215 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 0F1041A00BC for ; Sun, 1 Mar 2026 20:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1772396201; bh=Nz+OrZ9UpwnYpq2SlJjO6f3n8bLiP3nnVQltcDOo7Vw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AKmIoNXY8wzdOGQtKQYlSThsqV9ZxEgKhB3UjwtdzB0KCG+MAb63tdRulEd0//db5 JWyjLNe/m99fddv0v0X3sdJDXy7xVbtq83N8HB+E2BPRm0iUN9gOTvEhq9FJoz7jac Q3c8ueXEQ8wLE4HVKcTwHoySKQ7jYzvTowUO6pK66btS7qaFJZR0NsbAkLSGr4j+7x kzRjgX0Of4t1lt8Wjc7s5OkxjxTH8PHQhdtsyxpWZkCH1mrK9D2embPPWkJGrHA1Ue 7ZCy9xEHj/RBuzBX4kBUmnNw+E4WMtb3fWwAlDGd5017rtXIRGpPMhYjO6bXnA8yG1 SmUcRgIU4N2jg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C94C2180069 for ; Sun, 1 Mar 2026 20:16:40 +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-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (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, 1 Mar 2026 20:16:40 +0000 (UTC) Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-662f91bba0fso3932582eaf.0 for ; Sun, 01 Mar 2026 12:16:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772396195; cv=none; d=google.com; s=arc-20240605; b=dgkfbruAZn9M9X1s1a9jlT7+LX6JfseDyPFMSjNpp4C5oIjzdAIGSckQK7PNuEpcUB ZmgXyFAceSxlYlG0Z9buKsmoU9Z0nUaUKUnSx731wLzvMHDzDM9q2tgUyWH3Ufl+ssxN fEU3BM2ojJCwEuLhXm3vXykuSFQ+o0/jDM0+Os7piYN8v9xXzxDcNj003yRwnKyoOIv6 JYrqNMBDn2GrI0a7stv2M41QfG59uWZ/yosSIQzvB0oBDuklSIOijjKZg2kQ+e8L9WIx i2blbWk2AQAR1ZVr2/4nF7EW4LehNSlQNhwJ3gd8QkbB5mr7wzOQpvEcILq4aSgeqJrm hghg== 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=a91ZrlQ8E0EHkAhJovG1wzBh6LaGM+nchNm/YQ07lhs=; fh=xX59M9k2LJe5CkjPpBTRX27Ve3+5hYeaIKPXnbjUkb8=; b=NKVDJ7NSJ3cL0vwkrE9ccfQ/3P0cMOmYrJ5rNNtFVb+1wU4K0TRX7r2PgYwh+w80Oq LKQq6A3Q9q1hcgYaJucrL7reEILxP/9TLagD71OTURtqmffBn2U2E3+Eat63oRrJvkp/ ro5XsAqIkqYNwuXtKuxWLct0G/vy5x1GGN8jyUB/RTGdGWoefRs0lGORqRek+bIaQL9g G3xOH88ztCZnKotk53xkLH+SpDjPRG0dsSvE/h+Q267c/qW3/WM0+o/eeDjD1X9vrasI F42apHbnCbnJisdqClCUvQJqneOthVRMWZI5A2pFyaUmK1oYlDy3sD6Dbr4d+deCc/29 Gd4Q==; 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=1772396195; x=1773000995; 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=a91ZrlQ8E0EHkAhJovG1wzBh6LaGM+nchNm/YQ07lhs=; b=FVpADDyMlS4UOcdIcHu2Nm3u594AJxL2s9HIJKHDStiD/R+2+ctPt1dHo+2d+vFPFd PtPwUygEk3oQP+kmk+zdy4E/6EXX3+qIPGk2o5V9iziV0KmBvn6ZHt9wiDc/OqGU8SVv IuBPbRuZjvKZg+aXrvvG7BcJbMHq455i/eoNIOOtlmgzSUqkgLRuQhNq3kO4Ai5PZjHm aOX3wn5ldyT2wfu0H0n91A32Sp17Zt8IvTq/OySnm/+ROeo5eyqDc9LWdVDH7Gt2xMaX AFuuhBJ1JfODC98OGc0sqP0AkRpAR0Fqs8EQusETCDed9Q5CC8FFhHl3+s3IB9vSgA/o bDQg== X-Gm-Message-State: AOJu0Ywk5pC+PS295srohRMNVNnA+P8ntsu+f8NF4SArFmRQPcsKlKkx Hyl+m0hDIVkuY3JLAg5mgEIpxL33ZdhwcPOICmqOU3dFj3CIq989eWitQho7VatYt62FaX+T5ow 6/X76pBtb+vY/LHud1c1ZFcD5uElrrtM= X-Gm-Gg: ATEYQzzSlX4uBW3yS7wvz0+9V5yudOImFP1BpjUPPapu5QAgJDnOFBg9Jc2KmxwwwmD BUuZbIk36q+GSUx1tqlzhyPh5oD9yUY2RIZBSBxKT5d69yJiZ0TkdPYCmDIm96stFNxPOlpQiz4 Nh65DBeCt1eaZgyBGXjM5yhTEJrG9InS/JWdkdwdhVFMYxXIZZEl2eHTuEjD5uaNmv4MUyyJpp2 u1ZO2rOEGeCZMVrQfY8HOdKbWxCzOnhk0ObWG94IO58OjNfJRbhSADOigttvzTjH50aCKsqRy8x djd3V6ZxMr1cVc2e8w== X-Received: by 2002:a05:6820:1a0a:b0:662:f763:c530 with SMTP id 006d021491bc7-679fb438717mr5372024eaf.3.1772396194779; Sun, 01 Mar 2026 12:16:34 -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: Date: Sun, 1 Mar 2026 21:16:23 +0100 X-Gm-Features: AaiRm50jyV9tCPda3wPaQ6FAZSXboEIF0FNNGsoa8jdAfoDbIR4T2BHPHwsjRsY 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="000000000000975604064bfc25d3" From: bukka@php.net (Jakub Zelenka) --000000000000975604064bfc25d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Sun, Mar 1, 2026 at 9:05=E2=80=AFPM Tim D=C3=BCsterhus wrote: > Hi > > On 3/1/26 20:48, Jakub Zelenka wrote: > > The policy recommends consistency with existing symbols and there are > > already OpenSSLCertificate, OpenSSLCertificateSigningRequest and > > OpenSSLAsymmetricKey. So I think we should stick with no namespace here > and > > calls it OpenSSLSession and OpenSSLException. I will introduce that > > exception as I agree it makes more sense. > > The policy also states: > > > This is a somewhat loose guideline, and applies more strongly to > functions than classes. > > I don't feel strongly about the OpenSSLSession class, but I feel > strongly about the exception hierarchy: > > It should immediately be introduced into the namespace, because the > exception hierarchy is relevant to the entire extension (e.g. also to > newly namespaced bits) and namespacing it later will become messy. > > > existing extensions SHOULD follow the rules for newly introduced exceptions, but MAY diverge for consistency with existing symbols. The consistency is the key here. I really don't like introducing a namespace and have some classes in it and some not - that's really not a consistency then IMO. Kind regards, Jakub --000000000000975604064bfc25d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Sun, Mar 1, 2026 at 9:05= =E2=80=AFPM Tim D=C3=BCsterhus <tim@= bastelstu.be> wrote:
Hi

On 3/1/26 20:48, Jakub Zelenka wrote:
> The policy recommends consistency with existing symbols and there are<= br> > already OpenSSLCertificate, OpenSSLCertificateSigningRequest and
> OpenSSLAsymmetricKey. So I think we should stick with no namespace her= e and
> calls it OpenSSLSession and OpenSSLException. I will introduce that > exception as I agree it makes more sense.

The policy also states:

> This is a somewhat loose guideline, and applies more strongly to funct= ions than classes.

I don't feel strongly about the OpenSSLSession class, but I feel
strongly about the exception hierarchy:

It should immediately be introduced into the namespace, because the
exception hierarchy is relevant to the entire extension (e.g. also to
newly namespaced bits) and namespacing it later will become messy.

<= /blockquote>

>=C2=A0=C2=A0existing extensions SHOULD = follow the rules for newly introduced exceptions, but MAY diverge for consi= stency with existing symbols.

The consistency is t= he key here. I really don't like introducing a namespace and have some = classes in it and some not - that's really not a consistency then IMO.<= /div>

Kind regards,

Jakub
=
--000000000000975604064bfc25d3--