--- embedaddon/php/ext/date/lib/parse_date.re 2013/07/22 01:31:38 1.1.1.3 +++ embedaddon/php/ext/date/lib/parse_date.re 2013/10/14 08:02:09 1.1.1.4 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: parse_date.re,v 1.1.1.3 2013/07/22 01:31:38 misho Exp $ */ +/* $Id: parse_date.re,v 1.1.1.4 2013/10/14 08:02:09 misho Exp $ */ #include "timelib.h" @@ -649,7 +649,8 @@ static const timelib_relunit* timelib_lookup_relunit(c char *begin = *ptr, *end; const timelib_relunit *tp, *value = NULL; - while (**ptr != '\0' && **ptr != ' ' && **ptr != ',' && **ptr != '\t') { + while (**ptr != '\0' && **ptr != ' ' && **ptr != ',' && **ptr != '\t' && **ptr != ';' && **ptr != ':' && + **ptr != '/' && **ptr != '.' && **ptr != '-' && **ptr != '(' && **ptr != ')' ) { ++*ptr; } end = *ptr; @@ -2130,7 +2131,7 @@ timelib_time *timelib_parse_from_format(char *format, break; case '\\': /* escaped char */ - *fptr++; + fptr++; if (*ptr == *fptr) { ++ptr; } else {