Skip to content

Fix date createFromTimestamp test #12766

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
Nov 24, 2023

Conversation

iluuu1994
Copy link
Member

@iluuu1994 iluuu1994 commented Nov 24, 2023

Unfortuantely, PHP_INT_MIN cannot be expressed as a literal in PHP without overflowing to float, because -NUM is parsed as (-)(NUM). NUM is restricted to PHP_INT_MAX.

/cc @marc-mabe

Unfortuantely, PHP_INT_MIN cannot be expressed as a literal in PHP, because -NUM
is parsed as (-)(NUM). NUM is restricted to PHP_INT_MAX.
@iluuu1994 iluuu1994 force-pushed the fix-createFromTimestamp branch from 1838eab to 7b558a2 Compare November 24, 2023 12:38
@iluuu1994 iluuu1994 merged commit f6efd12 into php:master Nov 24, 2023
@marc-mabe
Copy link
Contributor

Unfortuantely, PHP_INT_MIN cannot be expressed as a literal in PHP without overflowing to float, because -NUM is parsed as (-)(NUM). NUM is restricted to PHP_INT_MAX.

/cc @marc-mabe

😮 I wasn't aware of that - thanks for pointing this out 🙏

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.

2 participants