Skip to content

update big int on cookie expire time to datatime format #18179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Oct 26, 2021

Conversation

peterhashair
Copy link
Contributor

@peterhashair peterhashair commented Oct 19, 2021

Description:

Fixes: #18019

add a function in cookies. it accepts timestamp (int) and string eg: + 30 years to avoid big int in PHP 32 bit

Review

update int 30 years to string
Peter Zhang added 3 commits October 20, 2021 00:44
update cookie time
update one error
update comments
@peterhashair peterhashair added Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Oct 19, 2021
@peterhashair peterhashair added this to the 4.6.0 milestone Oct 19, 2021
Peter Zhang added 3 commits October 20, 2021 00:55
remove a not used else
group test into simple functions
update typo
@sgiehl
Copy link
Member

sgiehl commented Oct 19, 2021

Seems there are also various tests failing...

@sgiehl sgiehl removed the Needs Review PRs that need a code review label Oct 19, 2021
update warning to try catch
@peterhashair
Copy link
Contributor Author

@sgiehl sorry, that's my bad, it actually fired a warning instead of an error.

@peterhashair peterhashair added the Needs Review PRs that need a code review label Oct 19, 2021
@peterhashair
Copy link
Contributor Author

peterhashair commented Oct 19, 2021

Not sure that's the best approach, it actually throws a warning to an exception enters the catch. Then reset it back.

ErrorHandler::registerWarningException();

remove GMT
@peterhashair peterhashair removed the Needs Review PRs that need a code review label Oct 20, 2021
revert test back
@peterhashair peterhashair added the Needs Review PRs that need a code review label Oct 20, 2021
Peter Zhang added 2 commits October 21, 2021 09:28
remove warning
remove time to fix bit 32
@peterhashair
Copy link
Contributor Author

@sgiehl that's looks great, let me update it.

Peter Zhang and others added 2 commits October 26, 2021 13:43
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to merge for me now. Will wait for the tests before merging

@sgiehl sgiehl merged commit 2b72bfe into 4.x-dev Oct 26, 2021
@sgiehl sgiehl deleted the m-18019-timestamp-php-32bit branch October 26, 2021 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Development

Successfully merging this pull request may close these issues.

Make the opt out work when a PHP 32 bit is used
3 participants