Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127902 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 5D0841A00BC for ; Sat, 5 Jul 2025 11:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751716255; bh=cmUOROzhpF8q0PcAi85ho6/ZNS6CsX4LukJiFoFwkFg=; h=From:Date:Subject:To:From; b=Ov4bnRd5MQ01p85OcSia9ySrqmSqxLC/53pF5iYNL5d/iSBKfM3aM7Z4Tky77llOT +AntOb5OTG7BWChMmRUyYwPt0/yuL7yyYPS/KROwwv3Rc+pPex9FUX02SV19D6D/q9 g8iPKIi+ocG5Rj7toEk3/xxbZ4KoyGvNQjG5NUX3eCwwjSHq5mSxz6SNPMTs+yBABU zpvP0UVGbxLD/t2aHrfy/e34viWql9imFHbal5HQSd2gsAhCMJQkcpOksflMxsB56W nphwGqkcgxKLIay5FGp2oZ1lGNSUpJJwjloec8EqBUEtadovSQkfVCEe90Cyg7njBX VA/3H9XpkwFVg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B6E3B180069 for ; Sat, 5 Jul 2025 11:50:54 +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-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (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 11:50:54 +0000 (UTC) Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-b31c84b8052so1869117a12.1 for ; Sat, 05 Jul 2025 04:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751716365; x=1752321165; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=AdUGML12OXsw+Vv4b3kGscoWMCrkgSlWfWnS+p6My8I=; b=IabEeCm9DX9jMNOTvjy0K4AHORhplqZz1FZHqmvY41PexkDctLujvI/76qUug5yPuI GMeDcFLrjPS26PCcjQGc5wH/7Vb2TM31mixQDkTUFYB8e6MgMXC0HlWz1+j8no5PgAT9 6dNw+iqEnJ0Pk4alz+t3kjxbXTdsgclkEcS8wqFGTPH8AUm63i+pt5OU2mGuaaqCHHKz iK408LxOCMbe4Xxr2lQKkEqrDnLM2UEUBs8W06oZL/IMUMbs8ea3LaII6/0xmCXtoHH6 9gIfyxD8TOPWn4fXt7TMPSCyS0skiKhJj7aorYZIsOOwoAMW6nEOXz9qR1zkd7L8cdwZ Q4ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751716365; x=1752321165; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AdUGML12OXsw+Vv4b3kGscoWMCrkgSlWfWnS+p6My8I=; b=VcRjOy091Ce28TbnsgknVbDGBE+g7Je42Xh8MYYwXNO3/2sBYO0U2WDx3sjpJRKrs6 8vRxCwejivFAvMsLprTD3pUswPbiHLqk3ffDPBsyRc6CXhWRcdoYUqhIoz8cheLANciT QpgAdpGDFX0RUylrmiX9zurMsIuNs5PCP/qZe25xr1FcJCeq2TvD+Xx+mCXp5pjgFMhY y3SrQXri+3kDSSeDuIo3p4ko1pCPNE0Q3OZi0PWmIvXnsysmzx+PORg4mrCSmEqmmf6d Uleqs75DuRsUQI2/RKega2Yr+V09ISFacCa/lXXpyiGbv+/fYrDHwvKNz3n93MEggZ2+ lp4w== X-Gm-Message-State: AOJu0YzFgiS49dv3Kvszu4cRM9riNzq/rNrogfeow+KDKjZswYZTerd1 KQ+01aXcRPDbW97oZsHrwePBBLP6kxqXe7qCnBcR0vyzF6ylfoFA2WvU/vp2u8xMJrdVvPSG3ZO 9rawdP78L0etKYgBrHEXXMOuhe9vCSWyke/oqV38= X-Gm-Gg: ASbGnctSZ6gyjc2OFGZ7Ap4Ob/g1NFX+l1ZYf3yA2b44r6hAaGKzknOkm0S6rQncIlY vNpSUWi+AaC4KZZMSUnSk9ydwkA7hGzQ9HcyLA4+7ppb1Xh4anilLU+OXyuFJjnv5ZRBP6mqWEw JPW7MObu9zgt1qgcChvVHb/JTf5GJS5CVF6DQVaUG7U67m X-Google-Smtp-Source: AGHT+IFVwQ8Qgn2RI+6OzxqcOrMADVlVFu6fAd6ADgbshMuhzxkhfhWw0CvLCJxAW9LZuTcSccCttWjH9dkVyBy5bb4= X-Received: by 2002:a17:90b:3a48:b0:315:7ddc:4c2a with SMTP id 98e67ed59e1d1-31aba84339cmr4001349a91.12.1751716364615; Sat, 05 Jul 2025 04:52:44 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Sat, 5 Jul 2025 14:52:33 +0300 X-Gm-Features: Ac12FXyAckf1290r1uLZQLu64DnXFjqExNb1x52nQnuV5HF84rSQ3byKZSMpAac Message-ID: Subject: [PHP-DEV] [Discussion] Cookies Having Independent Partitioned State (CHIPS) To: PHP internals Content-Type: multipart/alternative; boundary="000000000000a905ef06392d3f03" From: xepozzd@gmail.com (Dmitry Derepko) --000000000000a905ef06392d3f03 Content-Type: text/plain; charset="UTF-8" Hi, Internals! A few days ago I faced some Cookie limitations, solutions led me to the CHIPS specification. Link: https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies The idea of the CHIPS implementation is to add a new Cookie part named "Partitioned". When I set this flag using setcookie function, there was error: https://3v4l.org/WDpDX The error raises here: https://github.com/php/php-src/blob/5853cdb73db85c75d5f558a8cf92161a31291de0/ext/standard/head.c#L205-L220 The workaround is to use the "header" function, which allows any strings inside. 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. -- Best regards, Dmitrii Derepko. @xepozz --000000000000a905ef06392d3f03 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi, Internals!

A few days ag= o I faced some Cookie limitations, solutions led me to the CHIPS specificat= ion.
The idea of the CHIPS implementation is to add a new Cookie part= named "Partitioned".

When I set this fl= ag using setcookie function, there was error:=C2=A0https://3v4l.org/WDpDX

The error ra= ises here:

The workaround is to use= the "header" function, which allows any strings inside.

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.<= /div>

--
Best regards,
Dmitrii D= erepko.
--000000000000a905ef06392d3f03--