Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100038 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92936 invoked from network); 24 Jul 2017 23:33:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2017 23:33:16 -0000 X-Host-Fingerprint: 62.180.109.77 unknown Received: from [62.180.109.77] ([62.180.109.77:27530] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/94-55229-9B386795 for ; Mon, 24 Jul 2017 19:33:13 -0400 Message-ID: To: internals@lists.php.net References: <64.32.02884.7983D695@pb1.pair.com> Date: Tue, 25 Jul 2017 01:33:10 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 62.180.109.77 Subject: Re: [PHP-DEV] http_cookie_set and http_cookie_remove From: gmblar@gmail.com (Andreas Treichel) Hi Andrey, > 1. The wording here implies that these are the *only* attributes > allowed. In the interest of forward-compatibility, I'd allow arbitrary > attributes as well. I just try to implement something like this, to allow arbitrary attributes. Is this what you prefer? http_cookie_set('foobar', '1337', [ 'foo' => 23, 'bar' => 42 ]); Set-Cookie: foobar=1337; foo=23; bar=42