mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- Fixed bug #33578 (strtotime() doesn't understand "11 Oct" format). (Derick)
This commit is contained in:
parent
c933634253
commit
aa5084d17b
1
NEWS
1
NEWS
@ -9,6 +9,7 @@ PHP NEWS
|
||||
- Fixed memory corruption in pg_copy_from() in case the as_null parameter was
|
||||
passed. (Derick)
|
||||
- Fixed crash inside stream_get_line() when length parameter equals 0. (Ilia)
|
||||
- Fixed bug #33578 (strtotime() doesn't understand "11 Oct" format). (Derick)
|
||||
- Fixed bug #33562 (date("") crashes). (Derick)
|
||||
- Fixed bug #33536 (strtotime() defaults to now even on non time string).
|
||||
(Derick)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -845,6 +845,7 @@ datenoday = monthtext ([ -.])* year4;
|
||||
datenodayrev = year4 ([ -.])* monthtext;
|
||||
datetextual = monthtext ([ -.])+ day [,.stndrh ]* year;
|
||||
datenoyear = monthtext ([ -.])+ day [,.stndrh ]*;
|
||||
datenoyearrev = day ([ -.])+ monthtext;
|
||||
datenocolon = year4 monthlz daylz;
|
||||
|
||||
/* Special formats */
|
||||
@ -1149,6 +1150,16 @@ relativetext = (reltextnumber space reltextunit)+;
|
||||
return TIMELIB_DATE_TEXT;
|
||||
}
|
||||
|
||||
datenoyearrev
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
s->time->d = timelib_get_nr((char **) &ptr, 2);
|
||||
s->time->m = timelib_get_month((char **) &ptr);
|
||||
TIMELIB_DEINIT;
|
||||
return TIMELIB_DATE_TEXT;
|
||||
}
|
||||
|
||||
datenocolon
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
|
@ -845,6 +845,7 @@ datenoday = monthtext ([ -.])* year4;
|
||||
datenodayrev = year4 ([ -.])* monthtext;
|
||||
datetextual = monthtext ([ -.])+ day [,.stndrh ]* year;
|
||||
datenoyear = monthtext ([ -.])+ day [,.stndrh ]*;
|
||||
datenoyearrev = day ([ -.])+ monthtext;
|
||||
datenocolon = year4 monthlz daylz;
|
||||
|
||||
/* Special formats */
|
||||
@ -1149,6 +1150,16 @@ relativetext = (reltextnumber space reltextunit)+;
|
||||
return TIMELIB_DATE_TEXT;
|
||||
}
|
||||
|
||||
datenoyearrev
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
TIMELIB_HAVE_DATE();
|
||||
s->time->d = timelib_get_nr((char **) &ptr, 2);
|
||||
s->time->m = timelib_get_month((char **) &ptr);
|
||||
TIMELIB_DEINIT;
|
||||
return TIMELIB_DATE_TEXT;
|
||||
}
|
||||
|
||||
datenocolon
|
||||
{
|
||||
TIMELIB_INIT;
|
||||
|
Loading…
Reference in New Issue
Block a user