Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96527 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93654 invoked from network); 20 Oct 2016 20:54:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2016 20:54:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.175 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.175 mail-pf0-f175.google.com Received: from [209.85.192.175] ([209.85.192.175:33886] helo=mail-pf0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/6B-24564-61F29085 for ; Thu, 20 Oct 2016 16:54:47 -0400 Received: by mail-pf0-f175.google.com with SMTP id r16so43140163pfg.1 for ; Thu, 20 Oct 2016 13:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=KdXNSXCMuyAox6nxuqgClDfmWrerf9hfyritouPj8Sk=; b=Xxm+33iuWMgHoVhGBNuZ+aAAUZetTx5FPAEbqk+hVDndDJG+sS7IDrBDiUcUuL6pgV /RX/lzJ6Otn+bxreptbx9c2Xdh6dWAzix/BZLlI2v+P1tTxor5BSyx48zYaUw2wwTuqp KUF/tq0czrYbCOAaRTXEplKgY3b71pyWWxG+20paYbzbp4xq6g5CmdeYQdY1zWrknudW 0lZ+0xk8Z+Dh4WYvfZyg8JMl75Jtv+giBvz+LDtkOkNk8R+ld+NwjLyQnV4W9cF6EuB/ AmKH3MVk/dq7X3fxp1pjWmCCJphOA3zS39t95ZxF/4Zl0K+HdDNuZhVYULRDPx8h8o2W U+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=KdXNSXCMuyAox6nxuqgClDfmWrerf9hfyritouPj8Sk=; b=hb3TJTy0Kfdps04inulcfyHDSH6KAIEVff/gjVXmq4rA+y96uSYm9a6L9HVUeW8SAg PHDcWSfYU3aovrsWeplllK0vo4reRt/HjECJ0vSXSaemqsHnMjQFH959zUqnN9hcmFDz EHmkGChxhpVl1UcNP75m6042lHzXT4au6MTWxdCqzkLCY3C3TPsB5rIrLEQiOBgglr3c BujvIU4doCpz6NRY9EPuI1QkNVXnfhrmru0bNOpeO9Hu+FArwhgQ8ehbuaRwLzYblU66 TZzT6VtDP7/gMcX+xzlp345lIMesQgb5ojF5nzeH1La4lFu2KINuuUvVNOMKfjsfaGau eZvg== X-Gm-Message-State: AA6/9Rlxk0NUUd8IRgNdm6lN+7lTEBB1bMe+fNsz51Si6KjBjhzBM13iwdnBrDsVjI3/Sg== X-Received: by 10.99.56.87 with SMTP id h23mr3924485pgn.82.1476996883703; Thu, 20 Oct 2016 13:54:43 -0700 (PDT) Received: from Stas-Air.local ([198.8.80.47]) by smtp.gmail.com with ESMTPSA id m20sm73790067pfk.96.2016.10.20.13.54.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Oct 2016 13:54:42 -0700 (PDT) To: Yasuo Ohgaki , Stephen Reay References: <1eab7492-596c-ffd2-81ed-0eb9256a033e@gmail.com> <0B722A15-A29F-498B-987F-F6BA5AA49EEF@bobs-bits.com> Cc: "internals@lists.php.net" , Davey Shafik , Xinchen Hui Message-ID: <6f67a2c1-d386-0ab3-5c3b-fe1402a0a925@gmail.com> Date: Thu, 20 Oct 2016 13:54:40 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] header() removes all header of the same name. From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > The idea is to separate HTTP header handling functions. > > - header*() for any HTTP headers except 'Set-Cookie' > - cookie*() for only 'Set-Cookie' header This does not look like a good design. First of all, HTTP spec allows multiple instances of any header. Second, making function with unobvious gotcha branch is usually bad design. Third, we are solving non-existing problem here - people should just use existing functions correctly and everything would be fine. Let's not spend any more time on this. -- Stas Malyshev smalyshev@gmail.com