Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96553 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38039 invoked from network); 23 Oct 2016 04:09:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2016 04:09:56 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.174 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.174 mail-pf0-f174.google.com Received: from [209.85.192.174] ([209.85.192.174:35505] helo=mail-pf0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/3C-28528-3183C085 for ; Sun, 23 Oct 2016 00:09:56 -0400 Received: by mail-pf0-f174.google.com with SMTP id s8so78903514pfj.2 for ; Sat, 22 Oct 2016 21:09:55 -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=Z5ZYK0zEBOBaW+V7o8jN9wiQl8CTnIuFcNXm0ZSKIDs=; b=UmhqAycdNH2xk3EwjfrCC+mdehKvV8JLnOYeSdsqTMsSn5wHfVop1mYlpnVa/IoujH VcdwFaTnlFS/GwbE9oFuKgkplHyi1/vDxusJKLwERvEgsdoiUQmuLroz4e2G+oR6ObAG 0c+5FfbMjd5xU3fGaKrwa0n1epjUKlYDWd2enWkLLPuvmyn0Xzr4XLBd1iSeggA6WxvF dvATetnhALUBTICntKayw1axrwcHVl/ZCgODMl3L8KA/b0aLrcl0RsSmHDhwDPYQO5ZZ 54xP9BCvJfnFN2R2/Z0cjqFv1VQll/vWhECnDSTr21pJYuOWh94qgRxqhsXUzChYBUBu TYLg== 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=Z5ZYK0zEBOBaW+V7o8jN9wiQl8CTnIuFcNXm0ZSKIDs=; b=T5CZnKzt19EOnHQeTvVn5G6618NENmLzoZcAvDXR8B2Za1h9Tx+rGfTBsI1q0tlDFc geHJFbi26tfeWJwKVAY2lUTbCp9Aqb5UyIgsgcjJ0i9gxcmqH3PF2YxekfrURH+134yI e8iHZxRrvu3cIyo4gR8/U/5ojOmnJgCqYtxZvJDzFX35Acb6jRxiLaifGzRcW3W9C9C1 +UbncC9KzokAxZI+m2QUXwFF2yA9egNSf6KePlGbTxAoD1Q2/w35Jm/hLfVxZxS1HfpM b+H1B2hgQui5N5mzS2opT8xQiEDnIn3yvYeHfNcKjXdiqlJcYahYYt4vogY+81Kz8pgI wJsw== X-Gm-Message-State: ABUngvdPLIOoR7LzdpWSRlYXyxGOS8ymvVVVksSDbD5GekSZqKX1EffwRFwr0y0GAMBWRw== X-Received: by 10.98.220.141 with SMTP id c13mr16171982pfl.63.1477195791404; Sat, 22 Oct 2016 21:09:51 -0700 (PDT) Received: from Stas-Air.local (108-233-206-104.lightspeed.sntcca.sbcglobal.net. [108.233.206.104]) by smtp.gmail.com with ESMTPSA id 133sm15242936pfx.92.2016.10.22.21.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Oct 2016 21:09:50 -0700 (PDT) To: Yasuo Ohgaki References: <1eab7492-596c-ffd2-81ed-0eb9256a033e@gmail.com> <0B722A15-A29F-498B-987F-F6BA5AA49EEF@bobs-bits.com> <6f67a2c1-d386-0ab3-5c3b-fe1402a0a925@gmail.com> Cc: "internals@lists.php.net" Message-ID: Date: Sat, 22 Oct 2016 21:09:49 -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! > What about API clean up? > Since we have setcookie()/setrawcookie() already, we may clean up > current cookie API > > e.g. > - cookie_set/setcookie($name, [$value, [array $options]]) > (Keep current signature also) > - cookie_set_raw/setrawcookie($name, [$value, [array $options]]) > (Keep current signature also) These two already exist, and I see little value in changing their names or introducing a slightly different form of it. > - cookie_remove($name), cookie_list() > (These may be optional to you) Isn't it the same as setcookie with empty value? But in general, I don't have much objection to this. -- Stas Malyshev smalyshev@gmail.com