X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_object.c;h=d01c256ed32e3efd63977f548b38760f48341c74;hp=b6b3aafcac271f5c12dd3305031618cdd1b875fb;hb=42ed05ae82599af080b95f073809da8a8b47c84b;hpb=b9e4613eef61c3573a7dee58f555b2389698a097 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"); } } }