derick                                   Sat, 13 Nov 2010 15:01:48 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=305316

Log:
- MFH: Added support for the ( and ) delimiters/separators to
  DateTime::createFromFormat().
- Regenerated the parsers for HEAD and PHP_5_3.

Changed paths:
    U   php/php-src/branches/PHP_5_3/NEWS
    U   php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.c
    U   php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.re
    U   php/php-src/branches/PHP_5_3/ext/date/lib/parse_iso_intervals.c
    U   php/php-src/trunk/ext/date/lib/parse_date.c
    U   php/php-src/trunk/ext/date/lib/parse_iso_intervals.c

Modified: php/php-src/branches/PHP_5_3/NEWS
===================================================================
--- php/php-src/branches/PHP_5_3/NEWS   2010-11-13 14:57:47 UTC (rev 305315)
+++ php/php-src/branches/PHP_5_3/NEWS   2010-11-13 15:01:48 UTC (rev 305316)
@@ -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.

Modified: php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.c      2010-11-13 
14:57:47 UTC (rev 305315)
+++ php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.c      2010-11-13 
15:01:48 UTC (rev 305316)
@@ -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 @@
                                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 @@
                        case '.':
                        case ',':
                        case '-':
+                       case '(':
+                       case ')':
                                if (*ptr == *fptr) {
                                        ++ptr;
                                } else {

Modified: php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.re
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.re     2010-11-13 
14:57:47 UTC (rev 305315)
+++ php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.re     2010-11-13 
15:01:48 UTC (rev 305316)
@@ -1997,7 +1997,7 @@
                                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 @@
                        case '.':
                        case ',':
                        case '-':
+                       case '(':
+                       case ')':
                                if (*ptr == *fptr) {
                                        ++ptr;
                                } else {

Modified: php/php-src/branches/PHP_5_3/ext/date/lib/parse_iso_intervals.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/date/lib/parse_iso_intervals.c     
2010-11-13 14:57:47 UTC (rev 305315)
+++ php/php-src/branches/PHP_5_3/ext/date/lib/parse_iso_intervals.c     
2010-11-13 15:01:48 UTC (rev 305316)
@@ -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"
 /*
    +----------------------------------------------------------------------+

Modified: php/php-src/trunk/ext/date/lib/parse_date.c
===================================================================
--- php/php-src/trunk/ext/date/lib/parse_date.c 2010-11-13 14:57:47 UTC (rev 
305315)
+++ php/php-src/trunk/ext/date/lib/parse_date.c 2010-11-13 15:01:48 UTC (rev 
305316)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.5 on Mon Aug 30 17:33:15 2010 */
+/* Generated by re2c 0.13.5 on Sat Nov 13 14:56:03 2010 */
 #line 1 "ext/date/lib/parse_date.re"
 /*
    +----------------------------------------------------------------------+
@@ -24990,7 +24990,7 @@
                                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 @@
                        case '.':
                        case ',':
                        case '-':
+                       case '(':
+                       case ')':
                                if (*ptr == *fptr) {
                                        ++ptr;
                                } else {

Modified: php/php-src/trunk/ext/date/lib/parse_iso_intervals.c
===================================================================
--- php/php-src/trunk/ext/date/lib/parse_iso_intervals.c        2010-11-13 
14:57:47 UTC (rev 305315)
+++ php/php-src/trunk/ext/date/lib/parse_iso_intervals.c        2010-11-13 
15:01:48 UTC (rev 305316)
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.13.5 on Fri Mar 26 12:26:54 2010 */
+/* Generated by re2c 0.13.5 on Sat Nov 13 14:56:07 2010 */
 #line 1 "ext/date/lib/parse_iso_intervals.re"
 /*
    +----------------------------------------------------------------------+

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to