X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_message_object.c;h=235ffc4690cd7b1c89327052937e361410c7ec91;hb=da0ed230ef3e7775741841b4e037a432f98033cb;hp=a04cfe9aef8c4dd4cc2858d1121aa554bccf6a91;hpb=bed6be7b39b7992b44eb56455afe3f0b0bd04964;p=m6w6%2Fext-http 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; }