]> granicus.if.org Git - php/commitdiff
- MFH: Added support for the ( and ) delimiters/separators to
authorDerick Rethans <derick@php.net>
Sat, 13 Nov 2010 15:01:48 +0000 (15:01 +0000)
committerDerick Rethans <derick@php.net>
Sat, 13 Nov 2010 15:01:48 +0000 (15:01 +0000)
  DateTime::createFromFormat().
- Regenerated the parsers for HEAD and PHP_5_3.

NEWS
ext/date/lib/parse_date.c
ext/date/lib/parse_date.re
ext/date/lib/parse_iso_intervals.c

diff --git a/NEWS b/NEWS
index a16929ba1b955b3379ddf0ad8dc481e19733240e..200a7bcb9c4e9826a44b4424acc70b8bed0a6727 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,8 @@
   (Andrey)
 - Improved support for is_link and related functions on Windows. (Pierre)
 
+- Added support for the ( and ) delimiters/separators to
+  DateTime::createFromFormat(). (Derick)
 - Added custom process title for FPM. (fat)
 - Added '-t/--test' to php-fpm to check and validate FPM conf file. (fat)
 - Added statistics about listening socket queue length for FPM.
index f4b2af2d2076b46253469aab63103f8fdb3d6105..b89e05a2dbc8022d82175d668c3b79d7f9177cf2 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.5 on Mon Aug 30 17:37:00 2010 */
+/* Generated by re2c 0.13.5 on Sat Nov 13 14:58:02 2010 */
 #line 1 "ext/date/lib/parse_date.re"
 /*
    +----------------------------------------------------------------------+
@@ -24990,7 +24990,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);
@@ -25003,6 +25003,8 @@ timelib_time *timelib_parse_from_format(char *format, char *string, int len, tim
                        case '.':
                        case ',':
                        case '-':
+                       case '(':
+                       case ')':
                                if (*ptr == *fptr) {
                                        ++ptr;
                                } else {
index 6711369363495ff9a6289898e9d8e90793bebcba..0a711d1f27d1819f73573cc6cb1642f40de968c1 100644 (file)
@@ -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 {
index a08dcc4b56aa14c9b07f342e6a63b93f5bf7d1c3..f1c6fa765493031cd288adf15c439bf7bfa4c8a4 100644 (file)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.5 on Fri Mar 26 12:12:03 2010 */
+/* Generated by re2c 0.13.5 on Sat Nov 13 14:57:59 2010 */
 #line 1 "ext/date/lib/parse_iso_intervals.re"
 /*
    +----------------------------------------------------------------------+