Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128110 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 69E851A00BC for ; Fri, 18 Jul 2025 14:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1752848042; bh=mektPnH69Exg8OnRkYVzHt+b/ZozyyT536Xa/NiNCzo=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=NncEpBUQhXS/FOkKL9i4u4RFe5AX3qGuWD+VRbKZQ3EfY/MSaDTEgD1G/VvkFNu3y Wbw0yTeP5k46xMKm/2lYo96lsqWuMWvsd1SNpUJh4Dj6ui+rHSqpEaAu0Tu99nl76w HatkVRPuaTDQGXtBcO9HT+wxgVpSgDU4BKdKfZ8F6eFeljz91Ke5siiEh21/vheHuG yKW7pebqSrE4oj7dkpjvsSTQBx0UhEbiMzqFNODJhR/D2xsJbiwam+ozvFz+bI/JEM I7pQ8uQ0TJDbxntu5uKKowNoTRGYIiDg7F2kxwG4dScF7efNp47DeT9yml40W8q6Ah pdNoG3yuOUOIw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 829FE180079 for ; Fri, 18 Jul 2025 14:14: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=-1.2 required=5.0 tests=BAYES_40,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: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 ; Fri, 18 Jul 2025 14:14:01 +0000 (UTC) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-3a53359dea5so1020806f8f.0 for ; Fri, 18 Jul 2025 07:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752848147; x=1753452947; darn=lists.php.net; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=6VoDBrW8BN18SwoQYDH33DSOhCNbhiiUChdxeNh6tlU=; b=Xp54SVwsNTR5b418L7y+tGJtsPL0wjc5o27aj7REwP4U/v1ix27zx6EdOSPXKyFCkX LJBL/YVz2v8LT2oacJq6TsCnI9t4VO4BMXnUJBWE8NEA8MVEiatCR2Sgc7gCIXhbyYD+ ZC8B08H7PLkmEH36H2wzYM+vR2ZbCqeVpb2haMW//BTk5DyAiBKEwHsiR/668Cvq20im qKLpJFivng32UPxRqtEotWyvnBKrtJm40whHAEy0oiBc5/3AQKSU+UYJuLLgwmgMKwq7 3Xe4WR+N7LCpxdsYC5hGLN7kkKvCM7S5UW0tnPmfz8+djHPd9wdUedgPnFQ9g14nk/HU g9tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752848147; x=1753452947; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6VoDBrW8BN18SwoQYDH33DSOhCNbhiiUChdxeNh6tlU=; b=Iub9a5rRB0eCmxEtvmCNNCyAoTzyOMQowEXIPnMaqf0iQrRKFGr5iWdeNk04mK+E3I Aa3VLwjAcvIYxgwPaeI/RmOfu85QwRCS52mpIDwXU/Pqt09qQL1n05LZTF1MrC+y4exT guW6Dkh+QQcGIKiLGkwqWKValXnPVwyqX3465NRYdvyHtZyh+J+M4zFdQ78vmkFabd7n RbKHK5ImHSrA+K4F3VFLqIWh6x3QyPAqLi9JF3QeBK9m1TaVHzLA3Cn3u/3+2nW8oeRZ ZyMOtC+bBaYsl4F+O3JzTugmRoZjSPSyWN7mI+3vJGICpzjj/YUhxPqYNCb8gPjj1vNG 8W4w== X-Gm-Message-State: AOJu0YyRcD0/BPB/0NuCs9gqn98L0aYYeNfrsB4LvlBh5LHK+crzJYR1 cM5J4qW2NbIKuDVp0V/eGITUKc1PDbX7fJagb3V+OnBFAUGPu7uBXfBbyV7dBg== X-Gm-Gg: ASbGncuPXtBRYuJu4tTd/uXRDygKS/exkiCh7/wU/NZeebE1AQccSbDCQNEGql8bpJx ZD5JdPd2Fy/8H9FDYZU94xWIAD+Urpfh+w0Cje6c2ihqFLufXkdUsyvSkdpr88oI26kG5yye2OL 3DtsSxDIaMj7lpnu97H5ChrY/Wvb3lGi6488Abz7N9E/mY0yogdnP8z/UJl5vkoDq9vFN0wb6bV ynH21o62RExHeei8bRu8BsvAXLFKN6SFIqZ7VCdiHw82tW3RMYSq1ucRE2brnnft06xd5seyEob ZMT6Z/QUjdkEtSrQLPiyuuDBq9WWsekpX5NiDd5QqB+PuAEwMJinzLIEtZf11BZVijdjDWI+umq dQfLFjh76/CYOUNRyhMOzCqNRwLTLGimNpwjuVKwJ X-Google-Smtp-Source: AGHT+IF47G/VytXABAXBz2w6pS2H2Z4EKQ4S3GBSObXJnUYEun05S9yTfPMCcv2zLCcmm2evQp7rOw== X-Received: by 2002:a05:6000:290f:b0:3b5:e714:9c1e with SMTP id ffacd0b85a97d-3b60e4d1eb3mr9715634f8f.12.1752848146250; Fri, 18 Jul 2025 07:15:46 -0700 (PDT) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b61ca2b803sm1903128f8f.19.2025.07.18.07.15.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jul 2025 07:15:45 -0700 (PDT) Message-ID: <6F5072EB-E477-4CCD-8FF0-E09C2C10ED47@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_4EB48AD5-7B38-4BDD-9F3C-9A840729086F" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [PHP-DEV] [RFC] [Discussion] CHIPS Date: Fri, 18 Jul 2025 16:15:35 +0200 In-Reply-To: Cc: PHP internals To: Dmitry Derepko References: X-Mailer: Apple Mail (2.3826.600.51.1.1) From: claude.pache@gmail.com (Claude Pache) --Apple-Mail=_4EB48AD5-7B38-4BDD-9F3C-9A840729086F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Le 15 juil. 2025 =C3=A0 12:09, Dmitry Derepko a = =C3=A9crit : >=20 > Hi internals, >=20 > In collaboration with Niels Dossche I'd like to start the discussion = for an RFC proposing a new Cookie option for use with CHIPS technology. >=20 > As Niels noted, today is the day when in 4 weeks there will be code = freeze, so let's try to fit into the lines and deliver the value to PHP = 8.5. >=20 > RFC: https://wiki.php.net/rfc/chips > Implementation: https://github.com/php/php-src/pull/12652 > Previous discussions: https://externals.io/message/127902, = https://externals.io/message/122028 >=20 Hi, 1. The RFC says: =E2=80=9CCHIPS technology was introduced not so long = ago, but still has =E2=80=9Clittle=E2=80=9D adoption (currently = =E2=80=9Conly=E2=80=9D available in Blink-based browsers).=E2=80=9D It might be useful to add the following precisions, so that we are more = confident that it has good chance not to remain a Blink-only feature: * As of time of writing, there is an experimental implementation in = Firefox. * The feature has also been implemented in Safari, but has been = temporarily disabled because of an issue known by Apple only. 2. All examples in the RFC are variations on `setcookie("name", "value", = ["secure" =3D> true, "partitioned" =3D> true]);`, without same-site = attribute. As partitioned cookies are only meaningful as third-party cookies, what = is the behaviour when: (a) the same-site attribute is set to anything different from "None"? (b) the same-site attribute is omitted? (Although historically, omitting = the same-site parameter is equivalent to setting it to "None", browser = vendors are willing to switch the default to "Lax", and some browsers = (including Blink-based ones) have already done the switch.) In all examples I=E2=80=99ve seen on the web, an explicit = `samesite=3DNone` attribute is added to partitioned cookies, probably = for some good reason? =E2=80=94Claude= --Apple-Mail=_4EB48AD5-7B38-4BDD-9F3C-9A840729086F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Le 15 juil. 2025 =C3=A0 12:09, Dmitry Derepko = <xepozzd@gmail.com> a =C3=A9crit :

Hi = internals,

In collaboration with Niels Dossche I'd like to start = the discussion for an RFC proposing a new Cookie option for use with = CHIPS technology.

As Niels noted, today is the = day when in 4 weeks there will be code freeze, so let's try to fit into = the lines and deliver the value to PHP 8.5.

RFC: https://wiki.php.net/rfc/chips=
Implementation: https://github.com/php/= php-src/pull/12652

Hi,

1. The RFC says: =E2=80=9CCHIPS technology was = introduced not so long ago, but still has =E2=80=9Clittle=E2=80=9D = adoption (currently =E2=80=9Conly=E2=80=9D available in Blink-based = browsers).=E2=80=9D

It might be useful to add = the following precisions, so that we are more confident that it has good = chance not to remain a Blink-only feature:
* As of time of = writing, there is an experimental implementation in Firefox.
* = The feature has also been implemented in Safari, but has been = temporarily disabled because of an issue known by Apple = only.


2. All examples in the RFC = are variations on `setcookie("name", "value", ["secure" =3D> true, = "partitioned" =3D> true]);`, without same-site = attribute.

As partitioned cookies are only = meaningful as third-party cookies, what is the behaviour = when:

(a) the same-site attribute is set to = anything different from "None"?
(b) the same-site attribute is = omitted? (Although historically, omitting the same-site parameter is = equivalent to setting it to "None", browser vendors are willing to = switch the default to "Lax", and some browsers (including Blink-based = ones) have already done the switch.)

In all = examples I=E2=80=99ve seen on the web, an explicit `samesite=3DNone` = attribute is added to partitioned cookies, probably for some good = reason?

=E2=80=94Claude
= --Apple-Mail=_4EB48AD5-7B38-4BDD-9F3C-9A840729086F--