Re: [PHP-DEV] $http_response_header

2015-03-27 Thread Ferenc Kovacs
On Wed, Feb 4, 2015 at 7:42 AM, Stanislav Malyshev smalys...@gmail.com wrote: Hi! About $php_errormsg , we have error_get_last(). About $http_response_headers, we have no replacement. Why not get rid of both ? I agree. Magically appearing variables are bad design and if we can get

Re: [PHP-DEV] $http_response_header

2015-03-27 Thread Ferenc Kovacs
On Fri, Mar 27, 2015 at 5:42 PM, Ralph Schindler ra...@ralphschindler.com wrote: About $php_errormsg , we have error_get_last(). About $http_response_headers, we have no replacement. Why not get rid of both ? I agree. Magically appearing variables are bad design and if we can get rid of

Re: [PHP-DEV] $http_response_header

2015-03-27 Thread Ralph Schindler
About $php_errormsg , we have error_get_last(). About $http_response_headers, we have no replacement. Why not get rid of both ? I agree. Magically appearing variables are bad design and if we can get rid of them, PHP 7 is the time. -- Stas Malyshev smalys...@gmail.com did we miss the

Re: [PHP-DEV] $http_response_header

2015-03-27 Thread Ferenc Kovacs
On Fri, Mar 27, 2015 at 7:12 PM, Rowan Collins rowan.coll...@gmail.com wrote: Ferenc Kovacs wrote on 27/03/2015 16:50: yeah, but we already mentioned/discussed this that the removal would require introducing another way (eg. adding a method) for fetching the headers. I think that

Re: [PHP-DEV] $http_response_header

2015-03-27 Thread Yasuo Ohgaki
Hi all, On Wed, Feb 4, 2015 at 3:42 PM, Stanislav Malyshev smalys...@gmail.com wrote: About $php_errormsg , we have error_get_last(). About $http_response_headers, we have no replacement. Why not get rid of both ? I agree. Magically appearing variables are bad design and if we can get

Re: [PHP-DEV] $http_response_header

2015-02-03 Thread Stanislav Malyshev
Hi! About $php_errormsg , we have error_get_last(). About $http_response_headers, we have no replacement. Why not get rid of both ? I agree. Magically appearing variables are bad design and if we can get rid of them, PHP 7 is the time. -- Stas Malyshev smalys...@gmail.com -- PHP

Re: [PHP-DEV] $http_response_header

2015-02-03 Thread Ralph Schindler
On 2/3/15 3:33 AM, Julien Pauli wrote: On Mon, Feb 2, 2015 at 6:19 PM, Ferenc Kovacs tyr...@gmail.com wrote: About $php_errormsg , we have error_get_last(). About $http_response_headers, we have no replacement. Well, we sort of do. You can get header information from the http context

Re: [PHP-DEV] $http_response_header

2015-02-03 Thread Michael Wallner
On 03 02 2015, at 10:33, Julien Pauli jpa...@php.net wrote: $HTTP_RAW_POST_DATA could as well disappear (made deprecated as of 5.6). This is already gone in master, which reminds me of the missing UPGRADING note. Regards, Mike -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] $http_response_header

2015-02-03 Thread Ferenc Kovacs
On Tue, Feb 3, 2015 at 10:33 AM, Julien Pauli jpa...@php.net wrote: On Mon, Feb 2, 2015 at 6:19 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Tue, Dec 2, 2014 at 11:28 AM, Ferenc Kovacs tyr...@gmail.com wrote: On Tue, Dec 2, 2014 at 1:08 AM, Rowan Collins rowan.coll...@gmail.com wrote:

Re: [PHP-DEV] $http_response_header

2015-02-03 Thread Julien Pauli
On Mon, Feb 2, 2015 at 6:19 PM, Ferenc Kovacs tyr...@gmail.com wrote: On Tue, Dec 2, 2014 at 11:28 AM, Ferenc Kovacs tyr...@gmail.com wrote: On Tue, Dec 2, 2014 at 1:08 AM, Rowan Collins rowan.coll...@gmail.com wrote: On 1 December 2014 22:28:04 GMT, Ralph Schindler

Re: [PHP-DEV] $http_response_header

2015-02-02 Thread Ferenc Kovacs
On Tue, Dec 2, 2014 at 11:28 AM, Ferenc Kovacs tyr...@gmail.com wrote: On Tue, Dec 2, 2014 at 1:08 AM, Rowan Collins rowan.coll...@gmail.com wrote: On 1 December 2014 22:28:04 GMT, Ralph Schindler ra...@ralphschindler.com wrote: Hi all, Many of you know from reading the subject line

Re: [PHP-DEV] $http_response_header

2014-12-02 Thread Ferenc Kovacs
On Tue, Dec 2, 2014 at 1:08 AM, Rowan Collins rowan.coll...@gmail.com wrote: On 1 December 2014 22:28:04 GMT, Ralph Schindler ra...@ralphschindler.com wrote: Hi all, Many of you know from reading the subject line whats coming next! ;) In php, after we interact with HTTP streams (as a

[PHP-DEV] $http_response_header

2014-12-01 Thread Ralph Schindler
Hi all, Many of you know from reading the subject line whats coming next! ;) In php, after we interact with HTTP streams (as a client), PHP conjures into local scope a variable with header information from the previous request $http_response_header. Is this behavior something we want to

Re: [PHP-DEV] $http_response_header

2014-12-01 Thread Rowan Collins
On 1 December 2014 22:28:04 GMT, Ralph Schindler ra...@ralphschindler.com wrote: Hi all, Many of you know from reading the subject line whats coming next! ;) In php, after we interact with HTTP streams (as a client), PHP conjures into local scope a variable with header information from the

Re: [PHP-DEV] $http_response_header

2014-12-01 Thread Sanford Whiteman
I think that usage may have originated in PHP, actually. Eh, dunno about that... http://lists.w3.org/Archives/Public/ietf-http-wg-old/1995SepDec/0277.html for example. Even some W3C specs use header instead of the more accurate header field so it's kind of a done deal. -- S. -- PHP Internals