Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102953 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68215 invoked from network); 22 Jul 2018 16:12:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2018 16:12:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.72 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.72 outbound1.mail.transip.nl Received: from [149.210.149.72] ([149.210.149.72:50814] helo=outbound1.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/BD-47674-ECCA45B5 for ; Sun, 22 Jul 2018 12:12:00 -0400 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound1.mail.transip.nl (Postfix) with ESMTP id 41YV4W6lCrzT5nj for ; Sun, 22 Jul 2018 18:11:55 +0200 (CEST) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 41YV4T2x1Nz12MD7 for ; Sun, 22 Jul 2018 18:11:50 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id h3-v6so13169147wmb.1 for ; Sun, 22 Jul 2018 09:11:50 -0700 (PDT) X-Gm-Message-State: AOUpUlHRGkJZ6X62/YSz6BjusC5uHJcMnLjVuFhzVlzhHVS0gyH150mR PzRCVrxq29CjeWWsU5/cOyNkCV7C47k6eOh0GkU= X-Google-Smtp-Source: AAOMgpczIbmBzj+4y4MLagKJqG6npQpQUAwpE1e4YTpO8Q0ZDkOgEpK0Yh4g5Y9OGfh5M+pnqiILhK9KOHECXhx1Cw0= X-Received: by 2002:a1c:b586:: with SMTP id e128-v6mr5312523wmf.141.1532275908683; Sun, 22 Jul 2018 09:11:48 -0700 (PDT) MIME-Version: 1.0 References: <1abd260d-ebc4-a062-3381-72485946e8bc@gmail.com> In-Reply-To: Date: Sun, 22 Jul 2018 17:11:40 +0100 X-Gmail-Original-Message-ID: Message-ID: To: Niklas Keller Cc: Andrey Andreev , f.bosch@genkgo.nl, Stanislav Malyshev , PHP internals Content-Type: multipart/alternative; boundary="0000000000003c30a4057198c9ce" X-Scanned-By: ClueGetter at submission6.mail.transip.nl DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=transip-a; d=pmmaga.net; t=1532275914; h=from:reply-to:subject:to: cc:references:in-reply-to:date:mime-version:content-type; bh=o3NdLNIcuUJMlUHM3AikaN6T58HbOVZ8aY+vJqh+Fvk=; b=s4SqPti5mAEDWqrkTvCTQtTOjfpuZNOrBLpS4QO4HAsS3YAvis3UkYbQqZjmuA/Zn3poEg 5dnM5QCfQgYtNi8ulf2HV0OqHZcCogLMVd5R1ACdqRfAFJkQIvhJznAmVw8/V0QUGfsa1A SypGOx8zg4kTPeew0b/tD1pGx+SvJtwK5MJX+glaLgYc/F72pgKcjrvmlMtqPaTjWWIi0Y 9FPKaz4XgWXnoIGshCnBbd+tZewBhTCIxSh0W5Do+yJ/hF+LajKhFEp3s70b8s2I9fkV8W lsbcgdwNTLdzAo/XZK2tJthUKNbixDjny87xT625kv9OOPxJN8wyDF0XGcGLWQ== X-Report-Abuse-To: abuse@transip.nl Subject: Re: [PHP-DEV] [VOTE] Same Site Cookie RFC From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) --0000000000003c30a4057198c9ce Content-Type: text/plain; charset="UTF-8" On Sun, Jul 22, 2018 at 2:47 PM Niklas Keller wrote: > It'd be great to use an OO approach instead of "magic" array keys, > e.g. like this: > > https://github.com/amphp/http/blob/9c0ba2f2ebfae482b3ad7a0475eb3d1f74d87949/src/Cookie/CookieAttributes.php > > Regards, Niklas > Hi, While I do agree with the sentiment: - That would have been an even greater departure from the original RFC. - This is currently a purely procedural API. If this were about an hypothetical `ResponseHeaders::setCookie` it would definitely be the way to go. Regards, Pedro --0000000000003c30a4057198c9ce--