Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77100 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14991 invoked from network); 8 Sep 2014 08:09:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2014 08:09:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.51 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.192.51 mail-qg0-f51.google.com Received: from [209.85.192.51] ([209.85.192.51:36670] helo=mail-qg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/13-26504-B246D045 for ; Mon, 08 Sep 2014 04:09:15 -0400 Received: by mail-qg0-f51.google.com with SMTP id e89so1471848qgf.38 for ; Mon, 08 Sep 2014 01:09:13 -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=QYj7FaaKYRVIZqTnYnNyyWOYNAgost9c0tVi2O+ZfWc=; b=Gflglk5PwylwJcqaHf6+4uohaOSzlT1H3N5pdsk3UlEmiuHajwJXgQM9N4m4VEpyvl 8RhsTstsHaUU5LhB6QFscTUwAjTOXfRnfNkeHGl/aCbcEAZlk2AMO0kmdRjONgUtOZie ycngtJuZiIjXFHS9g5QzqTsl/AUY6/FA/1AVnRQdg0fegQKkPulT1Bo/8mi8KiqfL0cK zAzmWTtg99TwP5fl6Z8a2ph68+R2xcP+0Fm3CFGnqLXJgPsUKtPalqdcO6Bf9nGGI4Ee uH11X3MWrZ8KD7lGAT7T7HXjoehkcGn4zguDuE0yKFioQ4BpCukRk/IdQ3Kp7G+uxad4 i8yA== MIME-Version: 1.0 X-Received: by 10.229.191.2 with SMTP id dk2mr38877769qcb.8.1410163752968; Mon, 08 Sep 2014 01:09:12 -0700 (PDT) Received: by 10.140.80.210 with HTTP; Mon, 8 Sep 2014 01:09:12 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Sep 2014 10:09:12 +0200 Message-ID: To: Sherif Ramadan Cc: Tjerk Meesters , Florian Margaine , PHP Internals Content-Type: multipart/alternative; boundary=001a1133979e922aa7050289556c Subject: Re: [PHP-DEV] setcookie() minor BC break - fixes issue #67736 From: tyra3l@gmail.com (Ferenc Kovacs) --001a1133979e922aa7050289556c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Sep 8, 2014 at 9:15 AM, Sherif Ramadan wrote: > Actually, we shouldn't be doing that all. We should simply just overwrite > the header. It wouldn't make much sense to set two headers with the same > cookie name when we can just overwrite it. > > > that would be a bigger BC break, and without a warning, those people affected by the change will have a harder time figuring out what went wrong= . and as was discussed both in the PR and the bugreport the rfc discourages but doesn't prohibit this behavior, so making it impossible for the userland to do it would be a bit of an arbitrary restriction. maybe we could do something like introducing a new $overwrite =3D true opti= on to the function signature, but setcookie already has 7 arguments, so probably isn't a great idea. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --001a1133979e922aa7050289556c--