From: Derick Rethans Date: Sat, 13 Nov 2010 12:56:21 +0000 (+0000) Subject: - Added support for the ( and ) delimiters/separators to X-Git-Tag: php-5.4.0alpha1~191^2~686 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d763e535ccc2dba7824109bf67aed9fc3281cffc;p=php - Added support for the ( and ) delimiters/separators to DateTime::createFromFormat(). #- There are a few more things to come, once ready, I'll regenerate the .c file # and merge. --- diff --git a/ext/date/lib/parse_date.re b/ext/date/lib/parse_date.re index 6711369363..0a711d1f27 100644 --- a/ext/date/lib/parse_date.re +++ b/ext/date/lib/parse_date.re @@ -1997,7 +1997,7 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim break; case '#': /* separation symbol */ - if (*ptr == ';' || *ptr == ':' || *ptr == '/' || *ptr == '.' || *ptr == ',' || *ptr == '-') { + if (*ptr == ';' || *ptr == ':' || *ptr == '/' || *ptr == '.' || *ptr == ',' || *ptr == '-' || *ptr == '(' || *ptr == ')') { ++ptr; } else { add_pbf_error(s, "The separation symbol ([;:/.,-]) could not be found", string, begin); @@ -2010,6 +2010,8 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim case '.': case ',': case '-': + case '(': + case ')': if (*ptr == *fptr) { ++ptr; } else {