Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-30 Thread Gina P. Banyard
On Tuesday, 30 January 2024 at 08:48, Nicolas Grekas wrote: > > In Symfony's HttpClient, we use stream_get_meta_data($h)['wrapper_data'] to > access headers, so there is already a way to get them using nothing but > local scope. > > This makes me wonder why, in "rejected ideas", you wrote this

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-30 Thread Nicolas Grekas
Hi Gina, I would like to propose an RFC to add the functions > http_get_last_request_headers() and http_clear_last_request_headers() to > PHP to replace the magic variable $http_response_header. > > Link: https://wiki.php.net/rfc/http-last-response-headers > Sorry I missed this RFC. In Symfony'

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-22 Thread Larry Garfield
On Mon, Jan 22, 2024, at 1:48 AM, Gina P. Banyard wrote: > Hello internals, > > I have updated the RFC to include a motivation and rejected ideas section: > https://wiki.php.net/rfc/http-last-response-headers > > Unless there is further discussion, I intend to open the vote for the > RFC on Wednes

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-21 Thread Gina P. Banyard
Hello internals, I have updated the RFC to include a motivation and rejected ideas section: https://wiki.php.net/rfc/http-last-response-headers Unless there is further discussion, I intend to open the vote for the RFC on Wednesday the 24th of January. Best regards, Gina P. Banyard >

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Michał Marcin Brzuchalski
śr., 3 sty 2024 o 15:57 Gina P. Banyard napisał(a): > On Wednesday, 3 January 2024 at 14:38, Michał Marcin Brzuchalski < > michal.brzuchal...@gmail.com> wrote: > > Hi Gina, > > śr., 3 sty 2024 o 14:41 Gina P. Banyard napisał(a): > > Hello internals, > > I would like to propose an RFC to add the

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Gina P. Banyard
On Wednesday, 3 January 2024 at 14:38, Michał Marcin Brzuchalski wrote: > Hi Gina, > śr., 3 sty 2024 o 14:41 Gina P. Banyard napisał(a): > >> Hello internals, >> >> I would like to propose an RFC to add the functions >> http_get_last_request_headers() and http_clear_last_request_headers() to

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Gina P. Banyard
On Wednesday, 3 January 2024 at 14:34, Aleksander Machniak wrote: > On 3.01.2024 14:41, Gina P. Banyard wrote: > > > Link: https://wiki.php.net/rfc/http-last-response-headers > > > Wrong function name in the subject (should be "response" not "request") Ah yes indeed, the RFC title is also incorr

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Michał Marcin Brzuchalski
Hi Gina, śr., 3 sty 2024 o 14:41 Gina P. Banyard napisał(a): > Hello internals, > > I would like to propose an RFC to add the functions > http_get_last_request_headers() and http_clear_last_request_headers() to > PHP to replace the magic variable $http_response_header. > > Link: https://wiki.php

Re: [PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Aleksander Machniak
On 3.01.2024 14:41, Gina P. Banyard wrote: Link: https://wiki.php.net/rfc/http-last-response-headers Wrong function name in the subject (should be "response" not "request") I don't think we need the clearing function. Do we? I don't like that this is HTTP specific feature while we have other

[PHP-DEV] [RFC] Add http_(get|clear)_last_request_headers() function

2024-01-03 Thread Gina P. Banyard
Hello internals, I would like to propose an RFC to add the functions http_get_last_request_headers() and http_clear_last_request_headers() to PHP to replace the magic variable $http_response_header. Link: https://wiki.php.net/rfc/http-last-response-headers Best regards, Gina P. Banyard