X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_object.c;h=235ffc4690cd7b1c89327052937e361410c7ec91;hp=a04cfe9aef8c4dd4cc2858d1121aa554bccf6a91;hb=6ecdeac874ee8b45ffa114faa9d1da4850e0a42e;hpb=93e726eb9c892c26bc5ddb5417d0ac67ef691147 diff --git a/http_message_object.c b/http_message_object.c index a04cfe9..235ffc4 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -886,8 +886,8 @@ PHP_METHOD(HttpMessage, setResponseCode) if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &code)) { RETURN_FALSE; } - if (code < 100 || code > 510) { - http_error_ex(HE_WARNING, HTTP_E_INVALID_PARAM, "Invalid response code (100-510): %ld", code); + if (code < 100 || code > 599) { + http_error_ex(HE_WARNING, HTTP_E_INVALID_PARAM, "Invalid response code (100-599): %ld", code); RETURN_FALSE; }