* "Status" now is "Response Status"
authorMichael Wallner <mike@php.net>
Mon, 11 Apr 2005 10:33:00 +0000 (10:33 +0000)
committerMichael Wallner <mike@php.net>
Mon, 11 Apr 2005 10:33:00 +0000 (10:33 +0000)
# need to switch to http_message api

http_methods.c

index 1b2d80b786dc9c1a701fbcb66f33338e4b522d3e..5fec5d834ad456d0dc4d9089c6a132f027dd49b1 100644 (file)
@@ -1358,7 +1358,7 @@ PHP_METHOD(HttpRequest, getResponseCode)
 
        data = GET_PROP(obj, responseData);
        if (    (SUCCESS == zend_hash_find(Z_ARRVAL_P(data), "headers", sizeof("headers"), (void **) &hdrs)) &&
-                       (SUCCESS == zend_hash_find(Z_ARRVAL_PP(hdrs), "Status", sizeof("Status"), (void **) &code))) {
+                       (SUCCESS == zend_hash_find(Z_ARRVAL_PP(hdrs), "Response Status", sizeof("Response Status"), (void **) &code))) {
                RETVAL_STRINGL(Z_STRVAL_PP(code), Z_STRLEN_PP(code), 1);
                convert_to_long(return_value);
        } else {