| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2004-2005, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2004-2006, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
/* $Id$ */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
#include "php_http.h"
+
#include "php_http_api.h"
#include "php_http_date_api.h"
-ZEND_EXTERN_MODULE_GLOBALS(http);
-
static inline int check_day(const char *day, size_t len);
static inline int check_month(const char *month);
static inline int check_tzone(const char *tzone);
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;
}
date += len;
}
- else if (isdigit(*date)) {
+ else if (HTTP_IS_CTYPE(digit, *date)) {
/* a digit */
int val;
char *end;