From f0c6d7fcc16ca277aa197fd0bb1a17087dcd387e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 12 Apr 2006 08:39:23 +0000 Subject: [PATCH] - fix crash if there's no response status string after the response code --- http_request_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2