Skip to content

Fix GH-8778: Integer arithmethic with large number variants fails - #8779

Closed
cmb69 wants to merge 1 commit into
php:PHP-8.0from
cmb69:cmb/gh8778
Closed

cmb69 wants to merge 1 commit into
php:PHP-8.0from
cmb69:cmb/gh8778

Conversation

@cmb69

@cmb69 cmb69 commented Jun 14, 2022

Copy link
Copy Markdown
Member

When casting a variant to int, we need to heed the proper zval
type, which is an signed 64bit integer on x64, while VT_INT is only
a signed 32bit integer.

When casting a `variant` to `int`, we need to heed the proper `zval`
type, which is an signed 64bit integer on x64, while `VT_INT` is only
a signed 32bit integer.
@cmb69 cmb69 linked an issue Jun 14, 2022 that may be closed by this pull request
@devnexen
devnexen requested a review from Girgias June 17, 2022 12:04

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@cmb69 cmb69 closed this in 651e0cc Jun 18, 2022
@cmb69
cmb69 deleted the cmb/gh8778 branch June 18, 2022 09:53
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.

Integer arithmethic with large number variants fails

3 participants