X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_client_response.c;h=722b4e03ac1b58494593f0a35430098f76be3b72;hp=5acddae163ab782a63f1312808b70c1beffe363d;hb=HEAD;hpb=54059a470e850eb8380bde2a4ed117e25c1b3e95 diff --git a/src/php_http_client_response.c b/src/php_http_client_response.c index 5acddae..722b4e0 100644 --- a/src/php_http_client_response.c +++ b/src/php_http_client_response.c @@ -101,16 +101,16 @@ static PHP_METHOD(HttpClientResponse, getTransferInfo) php_http_expect(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &info_name, &info_len), invalid_arg, return); - info = zend_read_property(php_http_client_response_class_entry, getThis(), ZEND_STRL("transferInfo"), 0, &info_tmp); + info = zend_read_property(php_http_client_response_class_entry, Z_OBJ_P(ZEND_THIS), ZEND_STRL("transferInfo"), 0, &info_tmp); /* request completed? */ if (Z_TYPE_P(info) != IS_OBJECT) { - php_http_throw(bad_method_call, "Incomplete state", NULL); + php_http_throw(bad_method_call, "Incomplete state"); return; } if (info_len && info_name) { - info = zend_read_property(NULL, info, php_http_pretty_key(info_name, info_len, 0, 0), info_len, 0, &info_name_tmp); + info = zend_read_property(NULL, Z_OBJ_P(info), php_http_pretty_key(info_name, info_len, 0, 0), info_len, 0, &info_name_tmp); if (!info) { php_http_throw(unexpected_val, "Could not find transfer info with name '%s'", info_name);