Skip to content

Fix bug #71525 (Calls to date_modify will mutate timelib_rel_time, causing date_date_set issues)#1753

Closed
Sean-Der wants to merge 1 commit intophp:masterfrom
Sean-Der:bug71525
Closed

Fix bug #71525 (Calls to date_modify will mutate timelib_rel_time, causing date_date_set issues)#1753
Sean-Der wants to merge 1 commit intophp:masterfrom
Sean-Der:bug71525

Conversation

@Sean-Der
Copy link
Contributor

@Sean-Der Sean-Der commented Feb 4, 2016

timelib_time->timelib_rel_time is mutated by date_modify, and because it is never zero'ed out it latters causes other date operations to fail (like date_date_set)

https://bugs.php.net/bug.php?id=71525

timelib_time->timelib_rel_time is mutated by date_modify, and because it is never zero'ed out
it latters causes other date operations to fail (like date_date_set)
@derickr
Copy link
Member

derickr commented Feb 5, 2016

LGTM!

@Sean-Der
Copy link
Contributor Author

Sean-Der commented Feb 5, 2016

Thanks for looking this over @derickr!

This bug also effects pretty much every implementation of PHP (including HHVM) so hopefully it can be applied to 5.6 as well.

@derickr
Copy link
Member

derickr commented Feb 5, 2016

In the long run, I want to move all these functions into timelib, so that everything behaves the same.

@jpauli jpauli added the Bug label Feb 6, 2016
@weltling
Copy link

@Sean-Der thanks for the fix. Please merge into 7.0 (and don't forget the news).

Thanks.

@php-pulls
Copy link

Comment on behalf of ab at php.net:

Merged with f31e0cd. Thanks!

@php-pulls php-pulls closed this Feb 15, 2016
@Sean-Der Sean-Der deleted the bug71525 branch February 18, 2016 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants