derick Fri Jul 11 08:43:09 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/date/lib parse_date.c parse_date.re Log: - MFH: Fixed a compiler warning - the code didn't make much sense. http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.c?r1=1.29.2.30.2.14.2.18&r2=1.29.2.30.2.14.2.19&diff_format=u Index: php-src/ext/date/lib/parse_date.c diff -u php-src/ext/date/lib/parse_date.c:1.29.2.30.2.14.2.18 php-src/ext/date/lib/parse_date.c:1.29.2.30.2.14.2.19 --- php-src/ext/date/lib/parse_date.c:1.29.2.30.2.14.2.18 Tue Jul 8 20:25:09 2008 +++ php-src/ext/date/lib/parse_date.c Fri Jul 11 08:42:35 2008 @@ -1,4 +1,4 @@ -/* Generated by re2c 0.13.5 on Tue Jul 8 22:24:37 2008 */ +/* Generated by re2c 0.13.5 on Fri Jul 11 10:39:11 2008 */ #line 1 "ext/date/lib/parse_date.re" /* +----------------------------------------------------------------------+ @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: parse_date.c,v 1.29.2.30.2.14.2.18 2008/07/08 20:25:09 derick Exp $ */ +/* $Id: parse_date.c,v 1.29.2.30.2.14.2.19 2008/07/11 08:42:35 derick Exp $ */ #include "timelib.h" @@ -23410,11 +23410,8 @@ switch (*fptr) { case 'D': /* three letter day */ case 'l': /* full day */ - tmp = timelib_lookup_relunit((char **) &ptr); - if (!tmp) { + if (!timelib_lookup_relunit((char **) &ptr)) { add_pbf_error(s, "A textual day could not be found", string, begin); - } else { - s->time->m = tmp; } break; case 'd': /* two digit day, with leading zero */ http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/parse_date.re?r1=1.26.2.27.2.12.2.16&r2=1.26.2.27.2.12.2.17&diff_format=u Index: php-src/ext/date/lib/parse_date.re diff -u php-src/ext/date/lib/parse_date.re:1.26.2.27.2.12.2.16 php-src/ext/date/lib/parse_date.re:1.26.2.27.2.12.2.17 --- php-src/ext/date/lib/parse_date.re:1.26.2.27.2.12.2.16 Tue Jul 8 20:25:28 2008 +++ php-src/ext/date/lib/parse_date.re Fri Jul 11 08:42:54 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: parse_date.re,v 1.26.2.27.2.12.2.16 2008/07/08 20:25:28 derick Exp $ */ +/* $Id: parse_date.re,v 1.26.2.27.2.12.2.17 2008/07/11 08:42:54 derick Exp $ */ #include "timelib.h" @@ -1820,11 +1820,8 @@ switch (*fptr) { case 'D': /* three letter day */ case 'l': /* full day */ - tmp = timelib_lookup_relunit((char **) &ptr); - if (!tmp) { + if (!timelib_lookup_relunit((char **) &ptr)) { add_pbf_error(s, "A textual day could not be found", string, begin); - } else { - s->time->m = tmp; } break; case 'd': /* two digit day, with leading zero */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php