Re: http_cookie_set and http_cookie_remove
| From: | Michał Brzuchalski | Date: | Tue, 18 Jul 2017 19:10:15 +0000 |
| Subject: | Re: http_cookie_set and http_cookie_remove | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-99914@lists.php.net to get a copy of this message | ||
Hi Michael,
2017-07-18 21:02 GMT+02:00 Michael Morris <tendoaki@gmail.com>:
> On Tue, Jul 18, 2017 at 2:56 PM, lists@rhsoft.net <lists@rhsoft.net>
> wrote:
>
> >
> >
> > Am 18.07.2017 um 20:39 schrieb Michael Morris:
> >
> >> Personally, I no longer directly use these calls, preferring instead to
> >> use
> >> Symfony's HTTP foundation classes. Those in turn are, I understand, in
> the
> >> process of being converted to implement the common interface outlined
> >> here:
> >> http://www.php-fig.org/psr/psr-7/ I would be much
> >> more interested in
> >> seeing a bare bones implementation of that agreed on standard in the
> >> language core then seeing something entirely new, especially a band aid
> >> solution
> >>
> >
> > but why do you do this?
> >
> >
> Because I want to be done in a matter of hours or at most days instead of a
> matter of weeks or months. I've been down the "roll your own" road many
> times. It usually isn't worth it.
>
You can do what you want, but personally, I think introducing this little
feature and cleaning some std API
is better than providing a more complex way of handling requests like
linked PSR-7 not everyone may want to use it.
There is always a way to use functional API in user-land PSR-7
implementation but not the other way.
IMHO if someone wants to use simple functional API let them use it, it may
also be used in more complex problem solutions.
--
regards / pozdrawiam,
--
Michał Brzuchalski
about.me/brzuchal
brzuchalski.com