Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130252 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 CF22E1A00BC for ; Wed, 4 Mar 2026 22:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1772662321; bh=0uhHEC6WVWeGmJ+lRtfEfAx9tm5jUAzzB7OL5oZ7t0o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aZjaDBJ3AVLUeLZUQ1ebfmMd+X8O7RTqpcKTWSpOhEAhqYxGN96zD7phikSk/4oP5 tNstX2dwF5d79ixnJ7l9IZgLd7tCCtNAF1LyFGJnbt9ng7PmYJnjFyXMAWmVVqSXoT laLuMtNqOFwfjHSqh9pF/u5HBRU9ov0jgYrfN70Eie7/7Jbj2non9z78/wHF9Ft9fF SUW9L8WUP18hnBmHvwKkbIxvE/tH6o78uXtGJqis8Ej34nMZ6tKG5sMupBv0MadI4M vmoPMeHQmA1HcWASxLjSnjpV6nOMJMAht88tnRhN2e4lXLIPFSIXv4JCL6Pga+QDbH qJ1ClnapEQxPA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7AB7E1801E6 for ; Wed, 4 Mar 2026 22:12:00 +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_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-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) (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 ; Wed, 4 Mar 2026 22:12:00 +0000 (UTC) Received: by mail-oi1-f180.google.com with SMTP id 5614622812f47-463a0e14abfso5775295b6e.2 for ; Wed, 04 Mar 2026 14:11:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772662314; cv=none; d=google.com; s=arc-20240605; b=XNrxPaJXzOn2bvLraPpn47V/y9b6dqYjoK5b1sIcwqtw04z2i9juD3lp5ozXfTETHH m3Ohudh/i0a84HAeBog8JE7MgJbS+ij7A1ZEE8HXaPO4M+VLSF8z1/HMVMjWd0YUD3cG zky0YZRcxdfvpM5I5A1rBeFG9Ucud3llKj/1OL6s/gbZWsQfjswWA1R8MOLHqOI2mksC ezBPXbfGWA5Qrb4CRGrwVS69B5Ouv8ooFaQECZHdSQOX2ZgTX0DMOy7S0u/zCJxdxJfM mJyAG9knRqFyqBg0jysjQLqgUnYi8Rqpl+Q25XcukuY1n0aKDydxwo4yZ5ldVnIUa3ew e5rQ== 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=yS8CemyQQQdQezoII/T6Z0qaNgBFhf7HVh1/FvIJLf8=; fh=xX59M9k2LJe5CkjPpBTRX27Ve3+5hYeaIKPXnbjUkb8=; b=LPtampWbo0U+7ScKNBDtdsBpgdajCiIYaxU2PExZfrLWmyGkj5wLO1kSZt84J/hd/B RBzR30mzdoxANGSYI0BQnNt4U+54uesp5sCkIOdwB4ehDCcFgXqNr06Cj68M2SWeC9Tp fhrAAP/0mrxNHfGj6HwExHLQMq2mAP0cYh6t/p8lcIuDUuyM+QI13lyHnvfVxQaDmxMW /E0jLWqMHY4NHdIjzZVf1J+q3UwnPBJOKC+6nEO315Uyhmtc9+qyieESk+TEWF91meqY tg4UUEdc+LqmiCez0F9a2DiaasEQXuFOj1z6MQENJNnaHZbxJ+Rw7HDKfn3Vjz6kK2fE UNiw==; 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=1772662314; x=1773267114; 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=yS8CemyQQQdQezoII/T6Z0qaNgBFhf7HVh1/FvIJLf8=; b=SNGFGw+FABTXfQ7UALgAE/MkYCyJ4YIpOsFw0dlLJ3b15Hv4GoBQDkQuCkHE8B0HD7 XDgGmASar6R5Xu+1pupmpfREj9WOzX3i4RIs/U6mcpDyi1fw7BkPm+uXLP3Q/xr3JwZp AtbbmseATpjPOkw8Bqem8B9gUoWPhAK9bFfR+Eac0CHaSnh388dU5ReH+jIASsKbpYHv GQpTvgGVH5yrYRxiGxuqjI6lKZ+B2vkUlDbvEHeB2X/qerzJUPBJqjQ0GAZSeaMwqAVd gMdxxQEedz/5u/iXc7x6sanv989sucywaNsV83MOAUvZhWZanNj8Yeatq7q+Ps5ECtA0 ZOkw== X-Gm-Message-State: AOJu0YwswA15f6YVEAZC/ul0ZMqps6EHv8S/CZ2fz9xqvii63whYJymy N+OZx9edbh2tS4nKTk9ioMh1eZ+kTgAQEmwm8FTVpV2bA1D1ZuI1sPv0dh+A/h24zm3CewNk7vT tqiOM8mClEZUlLTLmXRyxgFSOGxmY1886dw== X-Gm-Gg: ATEYQzw/5G0ggeeL3n5NovkNIr8xl9cESGO2RIwEbCjN1oZ+uCpdlUYSZifGI8zqKoM FARsRcfgt/ZMiQZecin2bx3JmuQcNDgsCsmnaoMI6V7qdgVErIDRe39qGZAstH45hjhGZOZOX88 nGhdPSVrjzHrlmOoYS6n8aqY6mgyiyAH1xNZgT1QeR+cSfW2/6ziM3LerdvcsyOD6RWnRiqpzoj SvsuWXMR9In/2xRby0eaqQD48qSKs23f2SSxC6StDS+LtEsEDeGqHBLYff486IF1KSeNo8uQBWN cboZSSY= X-Received: by 2002:a05:6820:2208:b0:679:920a:9b73 with SMTP id 006d021491bc7-67b176e81c1mr2231300eaf.6.1772662314470; Wed, 04 Mar 2026 14:11:54 -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: Wed, 4 Mar 2026 23:11:43 +0100 X-Gm-Features: AaiRm520Yt6QXI0p9nDaAqYQCs-ZAUxHux8oA3QH9PiUP0qlPdGbCZz4kRliB-c 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="0000000000008f925f064c3a1b3e" From: bukka@php.net (Jakub Zelenka) --0000000000008f925f064c3a1b3e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Sun, Mar 1, 2026 at 9:16=E2=80=AFPM Jakub Zelenka wrote: > 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 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 >> 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. > So I thought about this and it's really matter of taste that should not impact the primary vote. I think it makes sense to add a secondary votes for those namings to see what others prefer. I just did the RFC update and implementation. I introduced OpenSSLException for now but if the secondary vote results in namespace, I will change it before merging. In addition I also fixed the serialize and export / import to default to PEM which is better for PHP and more consistent with other functions. Kind regards, Jakub --0000000000008f925f064c3a1b3e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Sun, Mar 1, 2026 at 9:16= =E2=80=AFPM Jakub Zelenka <bukka@php.ne= t> wrote:
Hi,

On Sun, Mar 1, 2026 at 9:05=E2=80=AFPM Tim D=C3= =BCsterhus <tim@ba= stelstu.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>

So I thought about this a= nd it's really matter of taste that should not impact the primary vote.= I think it makes sense to add a secondary votes for those namings to see w= hat others prefer. I just did the RFC update and implementation. I introduc= ed OpenSSLException for now but if the secondary vote results in namespace,= I will change it before merging. In addition I also fixed the serialize an= d export / import to default to PEM which is better for PHP and more consis= tent with other functions.

Kind regards,

Jakub
--0000000000008f925f064c3a1b3e--