Test: /ext/date/tests/bug62896.phpt - Version 5.4.8        

Bug #62896 "DateTime->modify('+0 days')" Modifies DateTime Object
Submitted: 2012-08-22 15:30:30 Modified: 2012-10-01 03:21:38
From: hoang.nguyen Assigned: stas
Status: Closed Package: Date/time related
PHP Version: 5.4Git-2012-08-22 (snap) OS: Windows, Linux

There are 7 different diffs reported by users for this test.

Count Diff
1794 (97%)
002+
003+ Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %s/bug62896.php on line 6
004+
005+ Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in %s/bug62896.php:6
006+ Stack trace:
007+ #0 %s/bug62896.php(6): DateTime->__construct('@1345586400')
008+ #1 {main}
009+ thrown in %s/bug62896.php on line 6
002- 2012-08-21 22:00:00 GMT+0000 (offset 0)
003- 2012-08-21 22:00:00 GMT+0000 (offset 0)
004- FROM TIMESTAMP, WITH TZ:
005- 2012-08-22 00:00:00 CEST (offset 7200)
006- 2012-08-22 00:00:00 CEST (offset 7200)
007- FROM STRING:
008- 2012-08-22 00:00:00 CEST (offset 7200)
009- 2012-08-22 00:00:00 CEST (offset 7200)
20 (1%)
002+
003+ Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %s/bug62896.php on line 6
004+
005+ Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in %s/bug62896.php:6
006+ Stack trace:
007+ #0 %s/bug62896.php(6): DateTime->__construct('@1345586400')
008+ #1 {main}
009+ thrown in %s/bug62896.php on line 6
002- 2012-08-21 22:00:00 GMT+0000 (offset 0)
003- 2012-08-21 22:00:00 GMT+0000 (offset 0)
004- FROM TIMESTAMP, WITH TZ:
005- 2012-08-22 00:00:00 CEST (offset 7200)
006- 2012-08-22 00:00:00 CEST (offset 7200)
007- FROM STRING:
008- 2012-08-22 00:00:00 CEST (offset 7200)
009- 2012-08-22 00:00:00 CEST (offset 7200) 003+ string(1) """
005- string(1) """
18 (1%)
002+
003+ Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %s/bug62896.php on line 6
004+
005+ Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in %s/bug62896.php:6
006+ Stack trace:
007+ #0 %s/bug62896.php(6): DateTime->__construct('@1345586400')
008+ #1 {main}
009+ thrown in %s/bug62896.php on line 6
002- 2012-08-21 22:00:00 GMT+0000 (offset 0)
003- 2012-08-21 22:00:00 GMT+0000 (offset 0)
004- FROM TIMESTAMP, WITH TZ:
005- 2012-08-22 00:00:00 CEST (offset 7200)
006- 2012-08-22 00:00:00 CEST (offset 7200)
007- FROM STRING:
008- 2012-08-22 00:00:00 CEST (offset 7200)
009- 2012-08-22 00:00:00 CEST (offset 7200) 004- Notice: dba_open(): %stest0.dbm: unexpected file type or format in %sdba_db4_003.php on line %d
005- 004- Notice: dba_popen(): %stest0.dbm: unexpected file type or format in %sdba_db4_007.php on line %d
005- 003+ string(1) """
005- string(1) """
7 (0%)
1 (0%)
002+
003+ Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %s/bug62896.php on line 6
004+
005+ Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in %s/bug62896.php:6
006+ Stack trace:
007+ #0 %s/bug62896.php(6): DateTime->__construct('@1345586400')
008+ #1 {main}
009+ thrown in %s/bug62896.php on line 6
002- 2012-08-21 22:00:00 GMT+0000 (offset 0)
003- 2012-08-21 22:00:00 GMT+0000 (offset 0)
004- FROM TIMESTAMP, WITH TZ:
005- 2012-08-22 00:00:00 CEST (offset 7200)
006- 2012-08-22 00:00:00 CEST (offset 7200)
007- FROM STRING:
008- 2012-08-22 00:00:00 CEST (offset 7200)
009- 2012-08-22 00:00:00 CEST (offset 7200) 044277: 1351193585 0.96114100 < 1351193585 0.96124400 001+ Passed: 99999
002+ Failed: 1
001- Passed: 100000
002- Failed: 0
003+ 044277: 1351193585 0.96114100 < 1351193585 0.96124400
1 (0%)
002+
003+ Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %s/bug62896.php on line 6
004+
005+ Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in %s/bug62896.php:6
006+ Stack trace:
007+ #0 %s/bug62896.php(6): DateTime->__construct('@1345586400')
008+ #1 {main}
009+ thrown in %s/bug62896.php on line 6
002- 2012-08-21 22:00:00 GMT+0000 (offset 0)
003- 2012-08-21 22:00:00 GMT+0000 (offset 0)
004- FROM TIMESTAMP, WITH TZ:
005- 2012-08-22 00:00:00 CEST (offset 7200)
006- 2012-08-22 00:00:00 CEST (offset 7200)
007- FROM STRING:
008- 2012-08-22 00:00:00 CEST (offset 7200)
009- 2012-08-22 00:00:00 CEST (offset 7200) 021330: 1353069629 0.54268400 < 1353069629 0.54268500 001+ Passed: 99999
002+ Failed: 1
001- Passed: 100000
002- Failed: 0
003+ 021330: 1353069629 0.54268400 < 1353069629 0.54268500
1 (0%)
002+
003+ Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in %s/bug62896.php on line 6
004+
005+ Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in %s/bug62896.php:6
006+ Stack trace:
007+ #0 %s/bug62896.php(6): DateTime->__construct('@1345586400')
008+ #1 {main}
009+ thrown in %s/bug62896.php on line 6
002- 2012-08-21 22:00:00 GMT+0000 (offset 0)
003- 2012-08-21 22:00:00 GMT+0000 (offset 0)
004- FROM TIMESTAMP, WITH TZ:
005- 2012-08-22 00:00:00 CEST (offset 7200)
006- 2012-08-22 00:00:00 CEST (offset 7200)
007- FROM STRING:
008- 2012-08-22 00:00:00 CEST (offset 7200)
009- 2012-08-22 00:00:00 CEST (offset 7200) 005386: 1351802850 0.56402200 < 1351802850 0.56413300 015353: 1351802850 0.59694200 < 1351802850 0.59747400 028873: 1351802850 0.64213200 < 1351802850 0.64237500 033826: 1351802850 0.65775700 < 1351802850 0.65782200 038053: 1351802850 0.67339900 < 1351802850 0.67345900 041530: 1351802850 0.68695300 < 1351802850 0.68704600 047280: 1351802850 0.70694100 < 1351802850 0.70749600 058661: 1351802850 0.74694100 < 1351802850 0.74763600 093030: 1351802850 0.86088200 < 1351802850 0.86099200 001+ Passed: 99991
002+ Failed: 9
001- Passed: 100000
002- Failed: 0
003+ 005386: 1351802850 0.56402200 < 1351802850 0.56413300
004+ 015353: 1351802850 0.59694200 < 1351802850 0.59747400
005+ 028873: 1351802850 0.64213200 < 1351802850 0.64237500
006+ 033826: 1351802850 0.65775700 < 1351802850 0.65782200
007+ 038053: 1351802850 0.67339900 < 1351802850 0.67345900
008+ 041530: 1351802850 0.68695300 < 1351802850 0.68704600
009+ 047280: 1351802850 0.70694100 < 1351802850 0.70749600
010+ 058661: 1351802850 0.74694100 < 1351802850 0.74763600
011+ 093030: 1351802850 0.86088200 < 1351802850 0.86099200