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

Test failures on 32-bit #77

Closed
remicollet opened this issue Nov 14, 2018 · 4 comments
Closed

Test failures on 32-bit #77

remicollet opened this issue Nov 14, 2018 · 4 comments

Comments

@remicollet
Copy link
Contributor

Everything OK on 64-bit

On 32-bit (yes this still exists...)

There were 4 failures:
1) MaxMind\Db\Test\Reader\DecoderTest::testPointers
decoded pointers - 1
Failed asserting that -1 is identical to 4294967295.0.
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:371
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:349
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:307
2) MaxMind\Db\Test\Reader\DecoderTest::testUint32
decoded uint32 - 1
Failed asserting that -1 is identical to 4294967295.0.
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:371
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:349
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:322
3) MaxMind\Db\Test\Reader\DecoderTest::testUint64
decoded uint64 - 1
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-4294967295
+-1
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:371
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:338
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:327
4) MaxMind\Db\Test\Reader\DecoderTest::testUint128
decoded uint128 - 1
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-4294967295
+-1
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:371
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:338
/builddir/build/BUILD/MaxMind-DB-Reader-php-e042b4f8a2dff41e19019faf16427178b07fbd58/tests/MaxMind/Db/Test/Reader/DecoderTest.php:332
FAILURES!

@oschwald
Copy link
Member

Thanks for reporting! To confirm, is this when using the pure PHP reader or the extension?

@remicollet
Copy link
Contributor Author

Thanks for reporting! To confirm, is this when using the pure PHP reader or the extension?

The pure PHP reader

@remicollet
Copy link
Contributor Author

Notice, with the extension enabled, test suite fails exactly the same way

@oschwald
Copy link
Member

Thanks for checking that. Looking at the failure more closely, it looks like it is specific to the decoder class, which the extension doesn't have an equivalent to and is use internally by the pure PHP reader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants