projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
cbbaaf2
)
- don't addref on returned objects that only exist in user space
author
Michael Wallner
<mike@php.net>
Mon, 7 Nov 2005 13:30:28 +0000
(13:30 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 7 Nov 2005 13:30:28 +0000
(13:30 +0000)
http_request_object.c
patch
|
blob
|
history
diff --git
a/http_request_object.c
b/http_request_object.c
index 76ba2dd1d2eefc300562f16796701f3c7c9e1ae9..8ea4da69a989ee15427a2f24e4d4ae8317d9d0ac 100644
(file)
--- a/
http_request_object.c
+++ b/
http_request_object.c
@@
-1885,7
+1885,7
@@
PHP_METHOD(HttpRequest, getRequestMessage)
SET_EH_THROW_HTTP();
if (msg = http_message_parse(PHPSTR_VAL(&obj->request), PHPSTR_LEN(&obj->request))) {
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();
}
}
SET_EH_NORMAL();
}
@@
-1917,7
+1917,7
@@
PHP_METHOD(HttpRequest, getHistory)
SET_EH_THROW_HTTP();
if (msg = http_message_parse(PHPSTR_VAL(&obj->history), PHPSTR_LEN(&obj->history))) {
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();
}
}
SET_EH_NORMAL();
}