From: Michael Wallner Date: Tue, 26 Apr 2005 11:14:08 +0000 (+0000) Subject: - typo & ws X-Git-Tag: RELEASE_0_8_0~57 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=a83c92bb0a8620394c3f164bafbfbc79d3a71a64 - typo & ws --- diff --git a/http_methods.c b/http_methods.c index 1ad3d38..6900604 100644 --- a/http_methods.c +++ b/http_methods.c @@ -683,7 +683,7 @@ PHP_METHOD(HttpMessage, setType) { long type; getObject(http_message_object, obj); - + if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &type)) { return; } @@ -715,7 +715,7 @@ PHP_METHOD(HttpMessage, getResponseCode) /* {{{ bool HttpMessage::setResponseCode(long code) * * Set the response code of an HTTP Response Message. - * Returns false if the Message is not of type HTTP_MSG_RESPONSE, + * Returns false if the Message is not of type HTTP_MSG_RESPONSE, * or if the response code is out of range (100-510). */ PHP_METHOD(HttpMessage, setResponseCode) @@ -731,7 +731,7 @@ PHP_METHOD(HttpMessage, setResponseCode) if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &code)) { RETURN_FALSE; } - if (code < 100 && code > 510) { + if (code < 100 || code > 510) { http_error_ex(E_WARNING, HTTP_E_PARAM, "Invalid response code (100-510): %ld", code); RETURN_FALSE; } @@ -861,7 +861,7 @@ PHP_METHOD(HttpMessage, getHttpVersion) /* }}} */ /* {{{ bool HttpMessage::setHttpVersion(string version) - * + * * Set the HTTP Protocol version of the Message. * Returns false if version is invalid (1.0 and 1.1). */ @@ -870,7 +870,7 @@ PHP_METHOD(HttpMessage, setHttpVersion) zval *v; zval *version; getObject(http_message_object, obj); - + if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &v)) { return; }