Skip to content

Conversation

@hikari-no-yume
Copy link
Contributor

Zend/zend_API.c Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bwoebi pointed out that I should check for (double)(ZEND_LONG_MAX + 1) on 32-bit as (double)(ZEND_LONG_MAX + 0.5) wouldn't truncate. I should probably #if this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since we do overflow checks in a bunch of places, maybe we should have a macro? ZEND_DOUBLE_FITS_LONG(double)?

@hikari-no-yume hikari-no-yume changed the title ZPP Fail on Overflow ZPP Failure on Overflow Sep 23, 2014
@smalyshev smalyshev added the RFC label Nov 18, 2014
@hikari-no-yume
Copy link
Contributor Author

The RFC was accepted, so I'll probably merge this in sometime soon

@php-pulls php-pulls merged commit d5afeef into php:master Dec 13, 2014
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.

4 participants