From: Michael Wallner Date: Wed, 24 Sep 2008 11:30:39 +0000 (+0000) Subject: reinitilaize http message prior throwing error X-Git-Tag: RELEASE_1_6_2~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=42ed05ae82599af080b95f073809da8a8b47c84b;p=m6w6%2Fext-http reinitilaize http message prior throwing error --- diff --git a/http_message_object.c b/http_message_object.c index b6b3aaf..d01c256 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -1396,8 +1396,8 @@ PHP_METHOD(HttpMessage, unserialize) if ((msg = http_message_parse_ex(obj->message, serialized, (size_t) length))) { obj->message = msg; } else { - http_error(HE_ERROR, HTTP_E_RUNTIME, "Could not unserialize HttpMessage"); http_message_init(obj->message); + http_error(HE_ERROR, HTTP_E_RUNTIME, "Could not unserialize HttpMessage"); } } }