Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102955 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72539 invoked from network); 22 Jul 2018 16:52:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2018 16:52:47 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.20 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.20 mout.gmx.net Received: from [212.227.17.20] ([212.227.17.20:52277] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/9E-47674-956B45B5 for ; Sun, 22 Jul 2018 12:52:43 -0400 Received: from [192.168.2.102] ([87.167.201.185]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MI5rO-1fiw171IBa-003vL7; Sun, 22 Jul 2018 18:52:03 +0200 To: Niklas Keller , =?UTF-8?Q?Pedro_Magalh=c3=a3es?= Cc: Andrey Andreev , Frederik Bosch , Stanislav Malyshev , PHP Internals References: <1abd260d-ebc4-a062-3381-72485946e8bc@gmail.com> Message-ID: <590c1490-f6d4-d796-6139-c97da933dc05@gmx.de> Date: Sun, 22 Jul 2018 18:52:02 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:MurFaR50UDgS6EhJIV8SRmKJbk9X/HEW0EJQcrmbmQcCpUHC1Ge ZZobpLmYrUCUyCMbxkWEQw4GcA8Pao3nXfv8PqI87jSNBK10x6DvaP6zj0AGxszmkXvW21K Y9LRel1VU2vtYu4mtO2I4cTHXeYdCbevdHFQ8xWQaneoG3RFSDBMptSIZKdlgVJJfNEBSIS TGZa0DUwG7vi+fRFcTIlQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:/9rJqAYZDhE=:ExFhjDGNZXeFNVFr+RW8Kv Z02hkfprXA3lYLNB/nu027qWHI3C9+YWfr6Ec9pA7Tmf0XzlI4k6bWljM7y/6ZxQ+XUW9iyDY /fv5vbp3BefEMYB+Rl8odAYjyDiWQUfjexfpgpkqs6UR1bir5f1yCugScpr+v551IvrdzfCX/ pyJOfaAnFgMaNtXgpfYMa6PBOPpPZnjS1W/H/X5c/TuwzFXIsiqMeEtjRaM7WauBZO8+JtKRh Y0kaQn4FvzrHks8iW4ViMYpJDaYVRwpypnTWjF+l2sl3ypFkutQPHyTkn1DvDPlS2f4ONx6UN HlJXm+WwDCnx6LWCUPoz5YJhReAWy9gdbj+svLauNIV3lNFwU9/wMtRiCenjvvKz5fLp9s2rI nyaICOCCndPGMAzI3VT99COXymlWYfl1Y1D4xEiOCSNJfJEQAJx+1iFuxRXdM8za2pFVjpMiC B6dyRAUUH9bnPAmx0NNUTuJM7Mg/LhUGQhZXeyPosxsfsKkCHLoP01SGSmJIopPKK5gc531di 8gSMX1KW0PQUE38YjO2xXYYEc144mKJKuiC7FHJrCJBdDHTy3IXEURkI6ENRYMo77h5xwxT6V owjOzCOdWFaApWmfnh/lCm8p/vi75ssoTsXpJGcPjrFZxrxzC6jGFNXJHPzivwm26ncIiUAks sGqYVtoXLStdW8fm9lBzRZnljDJ63M4uvLl0+T/gP5OtpEwB2V9nHco59OSqacvKvkqpbS9d9 aJhU6RE90ZnJ3UvLIUXZ089nyF+feoCASyTcphnhqFnl6RUicEblfzyDJwyV5HZtkOtMEJW2D CciWnUo Subject: Re: [PHP-DEV] [VOTE] Same Site Cookie RFC From: cmbecker69@gmx.de ("Christoph M. Becker") On 22.07.2018 at 18:40, Niklas Keller wrote: > Am So., 22. Juli 2018 um 18:11 Uhr schrieb Pedro Magalhães : >> >> 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 >> >> 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. > > why does it have to be an all or nothing approach? It's perfectly fine > to have a function that accepts an object. We have an already accepted (29:3) RFC[1], which just lacks implementation. Departing from the solution, which we agreed upon, in some details (such as suggested by Pedro) might be okay, but using objects instead of arrays is certainly not. [1] -- Christoph M. Becker