#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
-#include "php.h"
#include "php_http.h"
-#include "php_http_std_defs.h"
-
-#include <ctype.h>
+#include "php_http_date_api.h"
static int check_day(char *day, size_t len);
static int check_month(char *month);
{
struct tm *gmtime, tmbuf;
- if (gmtime = php_gmtime_r(&t, &tmbuf)) {
+ if ((gmtime = php_gmtime_r(&t, &tmbuf))) {
char *date = ecalloc(1, 31);
snprintf(date, 30,
"%s, %02d %s %04d %02d:%02d:%02d GMT",