fix logic error in HttpMessage::setResponseStatus
authorMichael Wallner <mike@php.net>
Thu, 24 Mar 2011 09:26:11 +0000 (09:26 +0000)
committerMichael Wallner <mike@php.net>
Thu, 24 Mar 2011 09:26:11 +0000 (09:26 +0000)
http_message_object.c

index a5b2ca82616d38f78bf94e3dba62a6c65df6bc4d..e7a564f2ba58349720d4a8a2336fb40e3e39091d 100644 (file)
@@ -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));