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 (from parent 1:
5d110e8
)
better fix for robs issue
author
Michael Wallner
<mike@php.net>
Wed, 18 Mar 2009 10:21:40 +0000
(10:21 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 18 Mar 2009 10:21:40 +0000
(10:21 +0000)
http_message_object.c
patch
|
blob
|
history
diff --git
a/http_message_object.c
b/http_message_object.c
index 5b96d218076ee4caea914895a209b2b813e9fdae..70bf7f0c06385ae58a04ea11f60c72e7d46b6a6f 100644
(file)
--- a/
http_message_object.c
+++ b/
http_message_object.c
@@
-803,7
+803,6
@@
PHP_METHOD(HttpMessage, setBody)
if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &body, &len)) {
phpstr_dtor(PHPSTR(obj->message));
phpstr_from_string_ex(PHPSTR(obj->message), body, len);
if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &body, &len)) {
phpstr_dtor(PHPSTR(obj->message));
phpstr_from_string_ex(PHPSTR(obj->message), body, len);
- phpstr_fix(PHPSTR(obj->message));
}
}
/* }}} */
}
}
/* }}} */
@@
-1277,6
+1276,7
@@
PHP_METHOD(HttpMessage, toMessageTypeObject)
zval_ptr_dtor(&array);
if (PHPSTR_VAL(obj->message) && PHPSTR_LEN(obj->message)) {
zval_ptr_dtor(&array);
if (PHPSTR_VAL(obj->message) && PHPSTR_LEN(obj->message)) {
+ phpstr_fix(PHPSTR(obj->message));
INIT_PZVAL(&body);
ZVAL_STRINGL(&body, PHPSTR_VAL(obj->message), PHPSTR_LEN(obj->message), 0);
if (method != HTTP_POST) {
INIT_PZVAL(&body);
ZVAL_STRINGL(&body, PHPSTR_VAL(obj->message), PHPSTR_LEN(obj->message), 0);
if (method != HTTP_POST) {