Skip to content

Commit 24b4462

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
2 parents deb88f2 + bd1d2c7 commit 24b4462

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

ext/date/tests/bug33414-1.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ print "wanted=Friday 00:00:00\n\n";
9595

9696
print "TZ=Pacific/Kwajalein - wrong day.\n";
9797
date_default_timezone_set("Pacific/Kwajalein");
98-
$tStamp = mktime (17, 17, 17, 1, 8626, 1970);
98+
$tStamp = mktime (17, 17, 17, 1, 8627, 1970);
9999
print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
100-
$strtotime_tstamp = strtotime("next Friday", $tStamp);
100+
$strtotime_tstamp = strtotime("next Saturday", $tStamp);
101101
print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
102-
print "wanted=Friday 00:00:00\n\n";
102+
print "wanted=Sunday 00:00:00\n\n";
103103

104104
print "TZ=Asia/Ulan_Bator - wrong day.\n";
105105
date_default_timezone_set("Asia/Ulan_Bator");
@@ -256,9 +256,9 @@ result=Friday 2003-04-04 00:00:00 EEST 1
256256
wanted=Friday 00:00:00
257257

258258
TZ=Pacific/Kwajalein - wrong day.
259-
tStamp=Friday 1993-08-13 17:17:17 -12 0
260-
result=Saturday 1993-08-21 00:00:00 +12 0
261-
wanted=Friday 00:00:00
259+
tStamp=Saturday 1993-08-14 17:17:17 -12 0
260+
result=Sunday 1993-08-22 00:00:00 +12 0
261+
wanted=Sunday 00:00:00
262262

263263
TZ=Asia/Ulan_Bator - wrong day.
264264
tStamp=Saturday 2001-09-22 17:17:17 +09 1

ext/date/tests/bug33415-2.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ print "wanted=Wednesday 00:15:00\n\n";
132132

133133
print "TZ=Pacific/Nauru - Is it OK for this to be 0:30? yes\n";
134134
date_default_timezone_set('Pacific/Nauru');
135-
$tStamp = mktime (17, 17, 17, 1, 3401, 1970);
135+
$tStamp = mktime (17, 17, 17, 2, 3, 1979);
136136
print "tStamp=". date("l Y-m-d H:i:s T I", $tStamp). "\n";
137-
$strtotime_tstamp = strtotime("next Tuesday", $tStamp);
137+
$strtotime_tstamp = strtotime("next Saturday +2 hours", $tStamp);
138138
print "result=".date("l Y-m-d H:i:s T I", $strtotime_tstamp)."\n";
139-
print "wanted=Tuesday 00:30:00\n\n";
139+
print "wanted=Saturday 02:30:00\n\n";
140140

141141
print "TZ=Pacific/Niue - Is it OK for this to be 0:30 AM? yes\n";
142142
date_default_timezone_set('Pacific/Niue');
@@ -292,9 +292,9 @@ result=Wednesday 1986-01-01 00:15:00 +0545 0
292292
wanted=Wednesday 00:15:00
293293

294294
TZ=Pacific/Nauru - Is it OK for this to be 0:30? yes
295-
tStamp=Tuesday 1979-04-24 17:17:17 +1130 0
296-
result=Tuesday 1979-05-01 00:30:00 +12 0
297-
wanted=Tuesday 00:30:00
295+
tStamp=Saturday 1979-02-03 17:17:17 +1130 0
296+
result=Saturday 1979-02-10 02:30:00 +12 0
297+
wanted=Saturday 02:30:00
298298

299299
TZ=Pacific/Niue - Is it OK for this to be 0:30 AM? yes
300300
tStamp=Sunday 1978-09-24 17:17:17 -1130 0

ext/date/tests/date_modify-1.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ date_modify() function [1]
33
--FILE--
44
<?php
55
date_default_timezone_set("Pacific/Kwajalein");
6-
$ts = date_create("Thu Aug 19 1993 23:59:59");
6+
$ts = date_create("Fri Aug 20 1993 23:59:59");
77
echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
88
$ts->modify("+1 second");
99
echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
@@ -20,8 +20,8 @@ $ts->modify("+ 1 hour 1 second");
2020
echo date_format($ts, 'D, d M Y H:i:s T'), "\n";
2121
?>
2222
--EXPECT--
23-
Thu, 19 Aug 1993 23:59:59 -12
24-
Sat, 21 Aug 1993 00:00:00 +12
23+
Fri, 20 Aug 1993 23:59:59 -12
24+
Sun, 22 Aug 1993 00:00:00 +12
2525
Sun, 27 Mar 2005 01:59:59 CET
2626
Sun, 27 Mar 2005 03:00:00 CEST
2727
Sun, 30 Oct 2005 01:59:59 CEST

0 commit comments

Comments
 (0)