Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59223 invoked from network); 20 Oct 2016 11:42:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2016 11:42:29 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:46341] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/66-24564-2ADA8085 for ; Thu, 20 Oct 2016 07:42:29 -0400 Received: (qmail 18781 invoked by uid 89); 20 Oct 2016 11:42:23 -0000 Received: from unknown (HELO mail-qt0-f170.google.com) (yohgaki@ohgaki.net@209.85.216.170) by 0 with ESMTPA; 20 Oct 2016 11:42:23 -0000 Received: by mail-qt0-f170.google.com with SMTP id f6so51591733qtd.2 for ; Thu, 20 Oct 2016 04:42:22 -0700 (PDT) X-Gm-Message-State: ABUngvefAglp4mAj0imlpW801jJtOsVicTnrpTkadB3EPISd9pPIqbhRtNfgN0BIK4rfiCb+QpNCQKrqWH4KuQ== X-Received: by 10.237.37.68 with SMTP id w4mr281994qtc.112.1476963737303; Thu, 20 Oct 2016 04:42:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.22.38 with HTTP; Thu, 20 Oct 2016 04:41:36 -0700 (PDT) In-Reply-To: References: <1eab7492-596c-ffd2-81ed-0eb9256a033e@gmail.com> <0B722A15-A29F-498B-987F-F6BA5AA49EEF@bobs-bits.com> <59D6B40B-DC64-43A3-AED4-CD5C9C15B6BA@koalephant.com> Date: Thu, 20 Oct 2016 20:41:36 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Stephen Reay Cc: Niklas Keller , Stanislav Malyshev , "internals@lists.php.net" , Davey Shafik , Xinchen Hui Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] header() removes all header of the same name. From: yohgaki@ohgaki.net (Yasuo Ohgaki) Hi Stephen, On Thu, Oct 20, 2016 at 8:24 PM, Stephen Reay wr= ote: > The *only* solution that retains full control for the developer, is no > change. Any =E2=80=9Cmagic=E2=80=9D about =E2=80=9Cuntouchable=E2=80=9D c= ookie headers (e.g. forcing the > session cookie header after userland cookie headers) takes away options f= or > the developer. My cookie*() functions proposal allows developers to remove header by cookie_remove() and can send any cookie header by cookie_custom(). Therefore, developers have full control if they have to. The only pain is that users may have to use cookie*() functions if we disallow header('Set-Cookie') which will be a vote option. If there is fully functional cookie*() functions, it will mitigate wrong header('Set-Cookie') usage regardless of the vote result, hopefully. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net