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

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

« previous php.internals (#96527) next »