From: Michael Wallner Date: Wed, 12 Apr 2006 08:39:23 +0000 (+0000) Subject: - fix crash if there's no response status string after the response code X-Git-Tag: RELEASE_1_0_0RC3~6 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=f0c6d7fcc16ca277aa197fd0bb1a17087dcd387e - fix crash if there's no response status string after the response code --- diff --git a/http_request_object.c b/http_request_object.c index bc7a0f8..1d04ed1 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -633,7 +633,7 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this } UPD_PROP(long, responseCode, msg->http.info.response.code); - UPD_PROP(string, responseStatus, msg->http.info.response.status); + UPD_PROP(string, responseStatus, msg->http.info.response.status ? msg->http.info.response.status : ""); MAKE_STD_ZVAL(resp); array_init(resp);