derick Sat, 13 Nov 2010 12:56:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=305313
Log:
- 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.
Changed paths:
U php/php-src/trunk/ext/date/lib/parse_date.re
Modified: php/php-src/trunk/ext/date/lib/parse_date.re
===================================================================
--- php/php-src/trunk/ext/date/lib/parse_date.re 2010-11-13 11:12:07 UTC
(rev 305312)
+++ php/php-src/trunk/ext/date/lib/parse_date.re 2010-11-13 12:56:21 UTC
(rev 305313)
@@ -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 {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php