Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1277 invoked from network); 8 Sep 2014 06:50:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2014 06:50:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.51 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 74.125.82.51 mail-wg0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:63794] helo=mail-wg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/40-26504-6B15D045 for ; Mon, 08 Sep 2014 02:50:31 -0400 Received: by mail-wg0-f51.google.com with SMTP id k14so204549wgh.22 for ; Sun, 07 Sep 2014 23:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Px0Tw6khzPbcnRyRCIC5Q6nR83l/4yHdeqYjvGsqsIo=; b=C+BrkgFrqON2rpquR6TOpcti82UpfVnh1G991HGjvNigs7tQ1sOXpjaniGxfFhT4mG zKnknTpVauGDJ9xjwThc3rorEDIKFJs1XHQBYOH+1Lqmk5IIsPEZ8QUUU7cBoqGWPXOG WyK4lKYBIaLCE6Kj33RmVv2IEzvczpCGkK4qrPfbJjQW50nxu1PhKVg8uvl6MJ6QR3yp X5x/IFORzxBedGlyfyAVwz8kf8of6w/VoTQZWxxe1GS8+0HoIdjW16rDRCm0gYpGl4sT BggsCoGWMNjqNL4X3w3qR7bGMlNb+hU4nlaBJ8QlVqQiyczjZcFdJy41l8hpd+ICInEG +uzQ== MIME-Version: 1.0 X-Received: by 10.180.184.20 with SMTP id eq20mr19890270wic.61.1410159027905; Sun, 07 Sep 2014 23:50:27 -0700 (PDT) Received: by 10.180.95.165 with HTTP; Sun, 7 Sep 2014 23:50:27 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Sep 2014 14:50:27 +0800 Message-ID: To: Florian Margaine Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c3536aef6b860502883b52 Subject: Re: [PHP-DEV] setcookie() minor BC break - fixes issue #67736 From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a11c3536aef6b860502883b52 Content-Type: text/plain; charset=UTF-8 Hi! On Sat, Sep 6, 2014 at 5:38 AM, Florian Margaine wrote: > Hi, > > This is a minor BC break, but still a BC break, so worth discussing on this > ML. > > When a second setcookie() is done with the same name, a warning is emitted, > because the ietf rfc 6265 says it *should* only send one Set-Cookie header > per name. > > This is fine when display_errors is set to off. When it's set to on, the > warning prevents the header from being added because "headers already sent" > (which is the minor BC break, as current PHP just sends 2 Set-Cookie > headers with the same name). > Yeah, it would prevent any header() or setcookie() following that warning from taking place. How about delaying that warning until the headers are sent? > > So, should it be merged? What should be done to comply with the ietf rfc > 6265? > > PR: https://github.com/php/php-src/pull/795/ > PHP issue: https://bugs.php.net/bug.php?id=67736 > > Regards, > > *Florian Margaine* > -- -- Tjerk --001a11c3536aef6b860502883b52--