8000 [Form] fix support for years outside of the 32b range on x86 arch by nicolas-grekas · Pull Request #41394 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] fix support for years outside of the 32b range on x86 arch #41394

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 1 commit into from
May 24, 2021

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

@@ -118,7 +118,7 @@ public function testConsumeRememberMeCookieExpired()
$this->tokenProvider->expects($this->any())
->method('loadTokenBySeries')
->with('series1')
->willReturn(new PersistentToken(InMemoryUser::class, 'wouter', 'series1', 'tokenvalue', new \DateTime('-'.(31536000 - 1).' years')));
->willReturn(new PersistentToken(InMemoryUser::class, 'wouter', 'series1', 'tokenvalue', new \DateTime('-'.(31536000 - 1).' months')));
Copy link
Member Author

Choose a reason for hiding this comment

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

/cc @wouterj WDYT?

Copy link
Member
@wouterj wouterj May 24, 2021

Choose a reason for hiding this comment

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

To me, seems like we can even make this '-'.(31536000 + 1).' seconds'?


throw new MethodArgumentValueNotImplementedException(__METHOD__, 'timestamp', $timestamp, $message);
}

if (\is_string($timestamp) && $dt = \DateTime::createFromFormat('U', $timestamp)) {
Copy link
Member

Choose a reason for hiding this comment

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

This should also be applied to the polyfills repo, right ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@nicolas-grekas nicolas-grekas changed the base branch from 6.0 to 4.4 May 24, 2021 10:23
@nicolas-grekas nicolas-grekas changed the title [Form] fix support for years in on x86 arch [Form] fix support for years outside of the 32b range on x86 arch May 24, 2021
@nicolas-grekas nicolas-grekas modified the milestones: 6.0, 4.4 May 24, 2021
@nicolas-grekas nicolas-grekas merged commit 7ccda8e into symfony:4.4 May 24, 2021
@nicolas-grekas nicolas-grekas deleted the fix32b branch May 24, 2021 10:32
This was referenced May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0