From: Ilia Alshanetsky Date: Thu, 16 Dec 2004 00:10:55 +0000 (+0000) Subject: MFH: Fixed bug #31056 (php_std_date() returns invalid formatted date if X-Git-Tag: php-4.3.11RC1~265 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=50c1182c4fc5499d3198580e245e1fd3764df4da;p=php MFH: Fixed bug #31056 (php_std_date() returns invalid formatted date if y2k_compliance is On). --- diff --git a/NEWS b/NEWS index 6e77c5ce53..2a47c3a15c 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,8 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? ????, Version 4.3.11 +- Fixed bug #31056 (php_std_date() returns invalid formatted date if + y2k_compliance is On). (Ilia) 15 Dec 2004, Version 4.3.10 - Added the %F modifier to *printf to render a non-locale-aware representation diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 4de3d5f95f..f7c8d8210d 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -773,7 +773,7 @@ char *php_std_date(time_t t TSRMLS_DC) tm1 = php_gmtime_r(&t, &tmbuf); str = emalloc(81); if (PG(y2k_compliance)) { - snprintf(str, 80, "%s, %02d-%s-%04d %02d:%02d:%02d GMT", + snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT", day_short_names[tm1->tm_wday], tm1->tm_mday, mon_short_names[tm1->tm_mon],