mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
MFH: Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format)
This commit is contained in:
@@ -61,6 +61,7 @@ PHP 4 NEWS
|
||||
- Fixed bug #21855 (Threading issue on HP-UX). (Roshan Naik, Andi, Moriyoshi)
|
||||
- Fixed bug #21074 (Apache2: "ErrorDocument xxx /error.php" broken). (Jani)
|
||||
- Fixed bug #19613 (putenv("VAR=") does not empty VAR on win32). (Zeev)
|
||||
- Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format). (Ilia)
|
||||
- Fixed bug #11924 (ibase_query(), ibase_execute() mangled passed parameters).
|
||||
(Jani)
|
||||
|
||||
|
||||
@@ -260,6 +260,17 @@ date : tUNUMBER '/' tUNUMBER {
|
||||
((struct date_yy *)parm)->yyMonth = $1;
|
||||
((struct date_yy *)parm)->yyDay = $3;
|
||||
}
|
||||
| tMONTH tUNUMBER tUNUMBER ':' tUNUMBER ':' tUNUMBER tUNUMBER {
|
||||
((struct date_yy *)parm)->yyYear = $8;
|
||||
((struct date_yy *)parm)->yyMonth = $1;
|
||||
((struct date_yy *)parm)->yyDay = $2;
|
||||
|
||||
((struct date_yy *)parm)->yyHour = $3;
|
||||
((struct date_yy *)parm)->yyMinutes = $5;
|
||||
((struct date_yy *)parm)->yySeconds = $7;
|
||||
|
||||
((struct date_yy *)parm)->yyHaveTime = 1;
|
||||
}
|
||||
| tUNUMBER '/' tUNUMBER '/' tUNUMBER {
|
||||
/* Interpret as YYYY/MM/DD if $1 >= 1000, otherwise as MM/DD/YY.
|
||||
The goal in recognizing YYYY/MM/DD is solely to support legacy
|
||||
|
||||
Reference in New Issue
Block a user