X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_functions.c;h=a1620e6b80f2fec52fcd9a9e5fec8fbfaa5436cf;hp=7f7c4d68647ed9b37eae9a95612fe4f3c2a5d507;hb=26591cefa8d85dced14547a0fb621b9a289ef2de;hpb=59a1afd0b68f9028e98fe003d8673db1fcf45f1f diff --git a/http_functions.c b/http_functions.c index 7f7c4d6..a1620e6 100644 --- a/http_functions.c +++ b/http_functions.c @@ -1462,7 +1462,7 @@ PHP_FUNCTION(http_request_method_unregister) if (is_numeric_string(Z_STRVAL_P(method), Z_STRLEN_P(method), NULL, NULL, 1)) { convert_to_long(method); } else { - ulong mn; + int mn; if (!(mn = http_request_method_exists(1, 0, Z_STRVAL_P(method)))) { RETURN_FALSE; } @@ -1505,7 +1505,7 @@ PHP_FUNCTION(http_request_method_exists) RETURN_LONG((long) http_request_method_exists(1, 0, Z_STRVAL_P(method))); } case IS_LONG: - RETURN_LONG((long) http_request_method_exists(0, Z_LVAL_P(method), NULL)); + RETURN_LONG((long) http_request_method_exists(0, (int) Z_LVAL_P(method), NULL)); default: RETURN_FALSE; } @@ -1530,7 +1530,7 @@ PHP_FUNCTION(http_request_method_name) RETURN_FALSE; } - RETURN_STRING(estrdup(http_request_method_name((ulong) method)), 0); + RETURN_STRING(estrdup(http_request_method_name((int) method)), 0); } } /* }}} */