Skip to content

PHPC-731: Parse Timestamp argument as strings to accept large integers #389

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

Merged
merged 1 commit into from
Sep 7, 2016

Conversation

derickr
Copy link
Contributor

@derickr derickr commented Sep 6, 2016

Depends on PHPC-726/PR #386

@derickr derickr force-pushed the PHPC-731-timestamp-parse-as-string branch 3 times, most recently from 3d7caec to f1c3c10 Compare September 7, 2016 13:50
@@ -0,0 +1,39 @@
--TEST--
MongoDB\BSON\Timestamp constructor requires 64-bit integers to be positive unsigned 32-bit integers (as string)
Copy link
Member

Choose a reason for hiding this comment

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

Unlike the 003 and 004 tests, these are only using string types. It doesn't make sense to refer to 64-bit integers or restrict the test to 64-bit platforms.

Both of these test cases should just be added into bson-timestamp-005.phpt, especially because we do want to test that the full range of 32-bit unsigned integers can be expressed on a 32-bit platform.

@derickr derickr force-pushed the PHPC-731-timestamp-parse-as-string branch from f1c3c10 to 01e8e81 Compare September 7, 2016 15:22
@derickr
Copy link
Contributor Author

derickr commented Sep 7, 2016

All updated.

@jmikola
Copy link
Member

jmikola commented Sep 7, 2016

LGTM.

@derickr derickr force-pushed the PHPC-731-timestamp-parse-as-string branch from 01e8e81 to ff00668 Compare September 7, 2016 16:06
@derickr derickr merged commit ff00668 into mongodb:master Sep 7, 2016
derickr added a commit that referenced this pull request Sep 7, 2016
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.

2 participants