Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Disable bigint for 64 bit machines #40

Merged
merged 3 commits into from
Dec 27, 2019
Merged

Disable bigint for 64 bit machines #40

merged 3 commits into from
Dec 27, 2019

Conversation

jvandort
Copy link
Contributor

This PR disables BigInteger if the machine is 64-bit. Currently, when an i8 type is received from the XMLRPC server, the client converts the value to a BigInteger. But now, if the machine is 64-bit, it will simply convert the value to a standard Integer.

@weierophinney
Copy link
Member

@jtvd78 I've added an additional test to ensure that i8 values are not cast to BigInteger on 64-bit systems (the test is skipped on non-64bit systems). I'll be merging and releasing shortly; thanks for the contribution!

@weierophinney weierophinney merged commit 3f52873 into zendframework:develop Dec 27, 2019
public function tearDown()
{
AbstractValue::$USE_BIGINT_FOR_I8 = $this->useBigIntForI8Flag;
$this->useBigIntForI8Flag = null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm curious what the significance of setting useBigIntForI8Flag to null is.

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

Successfully merging this pull request may close these issues.

2 participants