X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=8ea4da69a989ee15427a2f24e4d4ae8317d9d0ac;hb=25dc615c59f0a2c67978278ad5ff3b484c29fd5d;hp=cad4bd63783757342c18819336a1714b9edbc1ea;hpb=df7aeca1431cca4653468825a00b68b240c6ddbb;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index cad4bd6..8ea4da6 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -219,8 +219,6 @@ HTTP_END_ARGS; #define http_request_object_declare_default_properties() _http_request_object_declare_default_properties(TSRMLS_C) static inline void _http_request_object_declare_default_properties(TSRMLS_D); -#define http_request_object_clone_obj _http_request_object_clone_obj -static inline zend_object_value _http_request_object_clone_obj(zval *object TSRMLS_DC); zend_class_entry *http_request_object_ce; zend_function_entry http_request_object_fe[] = { @@ -1887,7 +1885,7 @@ PHP_METHOD(HttpRequest, getRequestMessage) SET_EH_THROW_HTTP(); if (msg = http_message_parse(PHPSTR_VAL(&obj->request), PHPSTR_LEN(&obj->request))) { - RETVAL_OBJVAL(http_message_object_new_ex(http_message_object_ce, msg, NULL)); + ZVAL_OBJVAL(return_value, http_message_object_new_ex(http_message_object_ce, msg, NULL)); } SET_EH_NORMAL(); } @@ -1919,7 +1917,7 @@ PHP_METHOD(HttpRequest, getHistory) SET_EH_THROW_HTTP(); if (msg = http_message_parse(PHPSTR_VAL(&obj->history), PHPSTR_LEN(&obj->history))) { - RETVAL_OBJVAL(http_message_object_new_ex(http_message_object_ce, msg, NULL)); + ZVAL_OBJVAL(return_value, http_message_object_new_ex(http_message_object_ce, msg, NULL)); } SET_EH_NORMAL(); }