Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127910 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 EC15D1A00BC for ; Sat, 5 Jul 2025 22:26:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751754281; bh=laGp24xbrd+FJJI5zfQSwyk5U5Kkgd6JJCj57csWJJ8=; h=From:Subject:Date:References:To:In-Reply-To:From; b=i9FDffd5Am77mQDg/1yexMQrgsCbY3uCH3RGX5li3OpmK8fYrRmUBZMyNAyR1ZpNf U0z4FtoE0jbciosssV+LmKROnR5uEaDexzJN2vhsq4Q9QqDMGJ7pvibER9XsTxdyEU zAHcHGNmydiHwIuNQ8sNS5BE1MwWNkkA1qPRA88/WUN4ogrhpvXdHlgDYJEGPqFpfa +y1AzL+azpAg+azETrXcpUKQ1dzxvOSz2QaGjzE/1kQrjNx9EujWegChuwQenpK4gy 2exXuUSz/g4wBaSAjA/wyKt9VQzhReCPfXotpNYc5ued51E2tnSYOz0fQ+YJxzqkd5 Kx9pEQcm4Dskw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E9384180054 for ; Sat, 5 Jul 2025 22:24:39 +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.9 required=5.0 tests=BAYES_40,DMARC_NONE, HEADER_FROM_DIFFERENT_DOMAINS,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-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 ; Sat, 5 Jul 2025 22:24:39 +0000 (UTC) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-70e77831d68so16296077b3.2 for ; Sat, 05 Jul 2025 15:26:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751754390; x=1752359190; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TXsSPVeo41ecuZLfMT359+Y8C7C77THfOXX1HvzQF48=; b=pFG4zR3c5gifCiipWOsMnMzGat80p1v5KoIuo6sdcDoJSi2ThPyJcr8VkDi8wLPtAX RWJeH4H7kyud7vscowvlKzYjkfBEvsm3MNr4JYhxSZSmqtCw8rnf1iCAxbfsgh5vb29w Us5htSftzLF+maKMIu4J0rBsfAl6DI3ygh5wc3MB809oEJ5jo/inHB9c3TXrXtfcU9tt XacEkcpK0gGFI3a2JaNKqS2lPFaAGDXyOZa/m+3dr0F78Mzf9sOocd2w4ktOp+OKcesL cNcN2uI5a95XpERTz50yrwOrjBeBvjZTnujI32ZbEYfQIJ7oeyhCo+oPl1sU3j8igCvD 0hNg== X-Gm-Message-State: AOJu0YxrW1Wr5eCXXQ+0LOe4ugho3xTFfKDF60239XK/x97mzNzLzm1F PAqe9d28zurSFAw8ShX3JBW+IiesvmImAq/zLxY5szeXcTb3BzHSVuhK2dGp26HNvpWIeC5VR9B 5wmMRkw== X-Gm-Gg: ASbGncslmTVsS2MFiJ8B4jTQL+08J52McxYFZEb1x7O4wH5Sfzf+F32dP0oPZ7eQ4Uf DjCpodIGAEyb27aScCdlDmqLrrLQIchDPQp3UJTmnLIrvQA+7bpcPPDvV47HTaieyIKdTPSjWOZ FsqKfMVd/VP/KLTg7yOlAkvfMCoSU3bT8JcROItStzrF+RtT/KPVgRVrjd2Vzeivss4A94CADPW 7Jk7Z+nGDJfuJB3T6Ynprq5FPMz8EvGG5L5MznqGl3mH/NzqSCmVWtXWI9x9o7DGQO2LUZvWX04 wXvqQCtwNwdUxlnPDRtW+cutFxbCB2oDkMbvWn/vPQV4n6ow7n1GWbtzeInGnoHdZvOWa59ReyA 5kufmO+4Wuhddo5gRRjbHsuBYO3KN7+CJfhxPU5pW3nnrAMw2pg== X-Google-Smtp-Source: AGHT+IGt58XaLqo4QTkfm/PDDRdXGpEwG8zUWbw0eNEmP/ICzPA87KM0DJkVoveN7vmVwBu4sb7XmQ== X-Received: by 2002:a05:690c:3348:b0:70c:90af:154 with SMTP id 00721157ae682-71668d1a288mr104681877b3.20.1751754390190; Sat, 05 Jul 2025 15:26:30 -0700 (PDT) Received: from smtpclient.apple (h96-61-170-179.lvrgtn.broadband.dynamic.tds.net. [96.61.170.179]) by smtp.gmail.com with ESMTPSA id 00721157ae682-716659a0521sm9787377b3.39.2025.07.05.15.26.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2025 15:26:29 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_F799CC51-B326-45C9-8501-9E4A3838C604"; protocol="application/pgp-signature"; micalg=pgp-sha256 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] [Discussion] Cookies Having Independent Partitioned State (CHIPS) Date: Sat, 5 Jul 2025 17:26:18 -0500 References: To: PHP internals In-Reply-To: Message-ID: <0D711888-1BDC-42E1-8EFE-B77681AE8BF4@php.net> X-Mailer: Apple Mail (2.3826.600.51.1.1) From: ramsey@php.net (Ben Ramsey) --Apple-Mail=_F799CC51-B326-45C9-8501-9E4A3838C604 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 5, 2025, at 06:52, Dmitry Derepko wrote: >=20 > Hi, Internals! >=20 > A few days ago I faced some Cookie limitations, solutions led me to = the CHIPS specification. >=20 > Link: = https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbo= x/Partitioned_cookies >=20 > The idea of the CHIPS implementation is to add a new Cookie part named = "Partitioned". >=20 > When I set this flag using setcookie function, there was error: = https://3v4l.org/WDpDX >=20 > The error raises here: > = https://github.com/php/php-src/blob/5853cdb73db85c75d5f558a8cf92161a31291d= e0/ext/standard/head.c#L205-L220 >=20 > The workaround is to use the "header" function, which allows any = strings inside. >=20 > I want to allow the "Partitioned" key to be set. Shall I open RFC or = is it possible to create only PR with improvements? > Also, I think it may be backported to all the actual PHP versions. >=20 > --=20 > Best regards, > Dmitrii Derepko. > @xepozz The Partitioned parameter isn=E2=80=99t supported in Firefox or Safari. = =46rom what I can tell, it=E2=80=99s only supported in Chromium-based = browsers. Safari 18.4 supported it, but they removed the support in = 18.5. I=E2=80=99d like to understand why, but I haven=E2=80=99t been = able to find anything on it. Cheers, Ben --Apple-Mail=_F799CC51-B326-45C9-8501-9E4A3838C604 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCaGmmigAKCRCwLZeYnIwH G2LcAQCHzrjPMqXNmmPQ4Abkr8tVlPZdvtBYRzb2oYC14nIbxQD/R0dO234AsHGr fPnsqzRst1c+6dBVcbjfMDf5FGOVGl0= =pExu -----END PGP SIGNATURE----- --Apple-Mail=_F799CC51-B326-45C9-8501-9E4A3838C604--