Skip to content
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

Fix failing 041.phpt on x64 Windows #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cmb69
Copy link

@cmb69 cmb69 commented Nov 30, 2021

For LLP64, a long is 32bit, what causes 041.phpt to fail on 64bit
Windows. However, as of PHP 7.0.0, integers are stored as zend_long
by the engine, so we can fix that test failure.


If that was the only issue regarding long, I think this patch would be okay. However, there are a lot more issues (and some are way more serious, such as passing a long* to zend_parse_parameters()), so there'd need to be an abstraction layer. Or maybe, consider to drop support for PHP < 7.0.0.

For LLP64, a `long` is 32bit, what causes 041.phpt to fail on 64bit
Windows.  However, as of PHP 7.0.0, integers are stored as `zend_long`
by the engine, so we can fix that test failure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant