From: Michael Wallner Date: Thu, 24 Mar 2011 09:26:11 +0000 (+0000) Subject: fix logic error in HttpMessage::setResponseStatus X-Git-Tag: RELEASE_1_7_1~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e97eb4951a19e934d25e9c5c2f147f4b009bbdfe;p=m6w6%2Fext-http fix logic error in HttpMessage::setResponseStatus --- diff --git a/http_message_object.c b/http_message_object.c index a5b2ca8..e7a564f 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -1000,7 +1000,7 @@ PHP_METHOD(HttpMessage, setResponseStatus) HTTP_CHECK_MESSAGE_TYPE_RESPONSE(obj->message, RETURN_FALSE); - if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &status, &status_len)) { + if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &status, &status_len)) { RETURN_FALSE; } STR_SET(obj->message->http.info.response.status, estrndup(status, status_len));