-
Notifications
You must be signed in to change notification settings - Fork 209
PHPC-1081: Package build failures on Fedora due to 32-bit issues, and it using MongoDB 3.4 #737
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
Conversation
b9d9c75
to
809fd51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still going to produce an exception with "Expected increment to be an unsigned 32-bit integer, -2147483648 given" on 32-bit systems?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. That's exactly what this test tests :-)
tests/utils/tools.php
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Short array syntax?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can change that, if you really care :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do while merging. It'll just save time later if we come across it again and want to revise.
tests/apm/overview.phpt
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this test require a 64-bit platform?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cursor ID in one of the returned structures is 64-bit, and can't be represented in 32-bits :-/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at Remi's build log, I see:
Fatal error: Uncaught MongoDB\Driver\Exception\InvalidArgumentException: Integer overflow detected on your platform: 917 in /builddir/build/BUILD/php-pecl-mongodb-1.4.0~beta1/NTS/tests/apm/overview.php:17
If APM can't work on 32-bit, that may be a more general issue to look into. Outside the scope of this PR, though.
809fd51
to
4334b00
Compare
Still have 2 failed tests (1.4.0beta1 + this PR), only with 3.6 on 32-bit
As 32-bit only supports mmapv1, can probably be skipped |
4334b00
to
d0d3cc7
Compare
Everything looks good now \o/ Thanks @derickr for this work. |
No description provided.