derick Mon Jun 20 04:47:56 2005 EDT Added files: /php-src/ext/date/tests bug21399.phpt bug26694.phpt bug28088.phpt bug29150.phpt bug29595.phpt
Modified files: /php-src NEWS Log: - Update news with implemented FRs and added test for those FRs. http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1938&r2=1.1939&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1938 php-src/NEWS:1.1939 --- php-src/NEWS:1.1938 Mon Jun 20 03:59:24 2005 +++ php-src/NEWS Mon Jun 20 04:47:51 2005 @@ -4,7 +4,9 @@ - Improved PHP extension loading mechanism with support for module dependencies and conflicts. (Jani, Dmitry) - Allowed return by reference from internal functions. (Marcus, Andi, Dmitry) -- Rewrote strtotime() with support for timezones and many new formats. (Derick) +- Rewrote strtotime() with support for timezones and many new formats. + Implements feature requests #21399, #26694, #28088, #29150, #29585 and + #29595. (Derick) - Added bindto socket context option. (Ilia) - Added offset parameter to the stream_copy_to_stream() function. (Ilia) - Added offset & length parameters to substr_count() function. (Ilia) http://cvs.php.net/co.php/php-src/ext/date/tests/bug21399.phpt?r=1.1&p=1 Index: php-src/ext/date/tests/bug21399.phpt +++ php-src/ext/date/tests/bug21399.phpt --TEST-- Bug #21399 (strtotime() request for "YYYYMMDDhhmmss [ZZZ]") --FILE-- <?php putenv("TZ=GMT"); echo gmdate("Y-m-d H:i:s", strtotime("20050620091407 GMT")); ?> --EXPECT-- 2005-06-20 09:14:07 http://cvs.php.net/co.php/php-src/ext/date/tests/bug26694.phpt?r=1.1&p=1 Index: php-src/ext/date/tests/bug26694.phpt +++ php-src/ext/date/tests/bug26694.phpt --TEST-- Bug #26694 (strtotime() request for "Sun, 21 Dec 2003 20:38:33 +0000 GMT") --FILE-- <?php putenv("TZ=GMT"); echo gmdate("Y-m-d H:i:s", strtotime("Sun, 21 Dec 2003 20:38:33 +0000 GMT")); ?> --EXPECT-- 2003-12-21 20:38:33 http://cvs.php.net/co.php/php-src/ext/date/tests/bug28088.phpt?r=1.1&p=1 Index: php-src/ext/date/tests/bug28088.phpt +++ php-src/ext/date/tests/bug28088.phpt --TEST-- Bug #28088 (strtotime() cannot convert 00 hours") --FILE-- <?php putenv("TZ=GMT"); echo "The following line rightly shows the correct date time:\n"; echo gmdate("m/d/y Hi", strtotime("04/04/04 2345")), "\n"; echo "But the following line fails to show the correct date time:\n"; echo gmdate("m/d/y Hi", strtotime("04/04/04 0045"))."\r\n"; ?> --EXPECT-- The following line rightly shows the correct date time: 04/04/04 2345 But the following line fails to show the correct date time: 04/04/04 0045 http://cvs.php.net/co.php/php-src/ext/date/tests/bug29150.phpt?r=1.1&p=1 Index: php-src/ext/date/tests/bug29150.phpt +++ php-src/ext/date/tests/bug29150.phpt --TEST-- Bug #29150 (Roman number format for months) --FILE-- <?php putenv("TZ=GMT"); echo gmdate("Y-m-d H:i:s", strtotime("20 VI. 2005")); ?> --EXPECT-- 2005-06-20 00:00:00 http://cvs.php.net/co.php/php-src/ext/date/tests/bug29595.phpt?r=1.1&p=1 Index: php-src/ext/date/tests/bug29595.phpt +++ php-src/ext/date/tests/bug29595.phpt --TEST-- Bug #29595 (Roman number format for months) --FILE-- <?php $from_postgres = '2004-08-09 14:48:27.304809+10'; echo strtotime($from_postgres); ?> --EXPECT-- 1092026907 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php