Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100039 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57348 invoked from network); 25 Jul 2017 07:57:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2017 07:57:54 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.218.50 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.218.50 mail-oi0-f50.google.com Received: from [209.85.218.50] ([209.85.218.50:36184] helo=mail-oi0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/00-57034-10AF6795 for ; Tue, 25 Jul 2017 03:57:54 -0400 Received: by mail-oi0-f50.google.com with SMTP id g131so46430420oic.3 for ; Tue, 25 Jul 2017 00:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=/xK/drbAq1AW6HIesn9HDXnhsVcRlwDY9JWUPaIsMGE=; b=cDnxaadUOCGNUYGhA+oCH4PTp9SNnNuIvi6RSuyQCKlj7pFV6s1IvBWvWa9ys/20QR 4pPWRnGiu4llZbroDNtTZjby92P7RqJ+ne4/RLhymWDPymAcz+3h8xwiEni907K+LFjh s13NBZbG4VQGsENLLwNJm5vhVUqxAVdEIgp7M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=/xK/drbAq1AW6HIesn9HDXnhsVcRlwDY9JWUPaIsMGE=; b=sJ2evGRsg2l8yKcTnMXwjzU2ZDkTizENA/dANPjPV+A3ThSctR0TFHDsCcdRZ8ie5+ hIsyyUSW8QgHKi7pURd2Zt2jzc9D24D8PcZdMmUuIhCIdPuUGf5C80W9W1EdLmnPwxst wQRiUY7ay9MWLJuyHrCwFOmH6ZIpRv/eroMZa8mLP+aEUAfjg9Y7tdpI6CcHaDGvccjQ LCBWDRQMzBv8+iQQgF+s3ECvjDskVfzdoY26PXP+1UpeQlzpMBfuqpy8iIKBe2UPCfDb +H5vyTfIxXijd/B09TBoO/qXELVDDXKXPNaWXCHgZPTzLdtJhINpMoJB9glufCjMtqvo dXDQ== X-Gm-Message-State: AIVw1126kjCHbNZOAWBAXwJpdECg7pff56E+Ot1PGaUiHA83mgkoUNFo pFIc9188c3IzANob+/hqy76giqMRXOR9 X-Received: by 10.202.188.196 with SMTP id m187mr1606497oif.91.1500969471109; Tue, 25 Jul 2017 00:57:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.181.103 with HTTP; Tue, 25 Jul 2017 00:57:50 -0700 (PDT) In-Reply-To: References: <64.32.02884.7983D695@pb1.pair.com> Date: Tue, 25 Jul 2017 10:57:50 +0300 Message-ID: To: Andreas Treichel Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] http_cookie_set and http_cookie_remove From: narf@devilix.net (Andrey Andreev) HI, On Tue, Jul 25, 2017 at 2:33 AM, Andreas Treichel wrote: > 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 > That is just what I had in mind, yes. Cheers, Andrey.