File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3085,6 +3085,7 @@ PHP_FUNCTION(date_isodate_set)
3085
3085
dateobj -> time -> y = y ;
3086
3086
dateobj -> time -> m = 1 ;
3087
3087
dateobj -> time -> d = 1 ;
3088
+ memset (& dateobj -> time -> relative , 0 , sizeof (dateobj -> time -> relative ));
3088
3089
dateobj -> time -> relative .d = timelib_daynr_from_weeknr (y , w , d );
3089
3090
dateobj -> time -> have_relative = 1 ;
3090
3091
Original file line number Diff line number Diff line change @@ -23,5 +23,5 @@ var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
23
23
--EXPECTF--
24
24
string(47) "2005-W52-7 | 2006-01-01 | 00:00:00 | 1136073600"
25
25
string(47) "2005-W52-1 | 2005-12-26 | 00:00:00 | 1135555200"
26
- string(47) "2007-W40-5 | 2007-10-10 | 00:00:00 | 1191974400"
27
- string(47) "2007-W40-5 | 2007-10-10 | 20:30:40 | 1192048240"
26
+ string(47) "2007-W41-3 | 2007-10-10 | 00:00:00 | 1191974400"
27
+ string(47) "2007-W41-3 | 2007-10-10 | 20:30:40 | 1192048240"
You can’t perform that action at this time.
0 commit comments