Re: header() removes all header of the same name.

From: Date: Sun, 23 Oct 2016 04:09:49 +0000
Subject: Re: header() removes all header of the same name.
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-96553@lists.php.net to get a copy of this message
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

« previous php.internals (#96553) next »