Skip to content

PHPLIB-494: Fix validation of options with default values #696

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 2 commits into from
Nov 15, 2019

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Nov 11, 2019

https://jira.mongodb.org/browse/PHPLIB-494

This fixes a few validation errors where it is possible to use null as a valid value for an option, resulting in undefined behaviour. All other options that have a default value are directly checked for their type, without an isset check to guard against a missing option since it should always be present due to the array union.

@alcaeus alcaeus requested a review from jmikola November 11, 2019 14:51
@alcaeus alcaeus self-assigned this Nov 11, 2019
@alcaeus alcaeus changed the base branch from master to v1.5 November 15, 2019 07:14
alcaeus added a commit that referenced this pull request Nov 15, 2019
alcaeus added a commit that referenced this pull request Nov 15, 2019
@alcaeus alcaeus merged commit 86ff731 into mongodb:v1.5 Nov 15, 2019
@alcaeus alcaeus deleted the phplib-494 branch November 15, 2019 08:21
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