Re: [PHP-DEV] [PATCH] getting current request's response code

2008-06-18 Thread Stanislav Malyshev
Hi! Any interest in the attached patch? It introduces a "headers_response_code()" function which returns I see no problem with it. Just don't forget to add docs and test if you add it :) -- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 M

[PHP-DEV] [PATCH] getting current request's response code

2008-06-16 Thread David Sklar
Any interest in the attached patch? It introduces a "headers_response_code()" function which returns SG(sapi_headers).http_response code. This information does not seem to be otherwise available -- the status line does not come back with headers_list(). Index: ext/standard/basic_functions.c ===