X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_date_api.c;h=10f3463a437c8efd2ab5cee7636f8c22ba2815f9;hb=bdaebfc338f06807fd985f40a38006a968f5b574;hp=31898de486972122ccc0d77ba5345d209d093227;hpb=32e91737086db53bb1fd9ed9f79d693c43ec459f;p=m6w6%2Fext-http diff --git a/http_date_api.c b/http_date_api.c index 31898de..10f3463 100644 --- a/http_date_api.c +++ b/http_date_api.c @@ -12,11 +12,8 @@ /* $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include "php_http.h" + #include "php_http_api.h" #include "php_http_date_api.h" @@ -207,11 +204,11 @@ static inline time_t parse_date(const char *date) while (*date && (part < 6)) { int found = 0; - while (*date && !isalnum(*date)) { + while (*date && !HTTP_IS_CTYPE(alnum, *date)) { date++; } - if (isalpha(*date)) { + if (HTTP_IS_CTYPE(alpha, *date)) { /* a name coming up */ char buf[32] = ""; size_t len; @@ -245,7 +242,7 @@ static inline time_t parse_date(const char *date) } date += len; } - else if (isdigit(*date)) { + else if (HTTP_IS_CTYPE(digit, *date)) { /* a digit */ int val; char *end;