Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

HHVM-178, HHVM-179, HHVM-180: Range checks for WriteConcern, Binary, and Timestamp #69

Closed
wants to merge 3 commits into from

Conversation

derickr
Copy link
Contributor

@derickr derickr commented Feb 29, 2016

No description provided.

@@ -657,6 +657,10 @@ function bsonUnserialize(array $data) : void;

public function __construct(private string $data, private int $type)
{
if ( $type < 0 || $type > 255 )
Copy link
Member

Choose a reason for hiding this comment

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

UINT8_MAX?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't exist as a PHP user land exported value annoyingly.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I missed the fact that this was in PHP. No worries, then.

@jmikola
Copy link
Member

jmikola commented Feb 29, 2016

LGTM apart from the questions above.

@derickr derickr closed this Mar 1, 2016
@derickr derickr deleted the HHVM-178-179-180-out-of-range branch March 1, 2016 09:48
derickr added a commit that referenced this pull request Mar 1, 2016
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