From: Michael Wallner Date: Wed, 18 Mar 2009 10:21:40 +0000 (+0000) Subject: better fix for robs issue X-Git-Tag: RELEASE_1_7_0b2~28 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=ea0d9948275e4e369633c53c59340db3d3df34d3;p=m6w6%2Fext-http better fix for robs issue --- diff --git a/http_message_object.c b/http_message_object.c index 5b96d21..70bf7f0 100644 --- 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); - 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)) { + phpstr_fix(PHPSTR(obj->message)); INIT_PZVAL(&body); ZVAL_STRINGL(&body, PHPSTR_VAL(obj->message), PHPSTR_LEN(obj->message), 0); if (method != HTTP_POST) {