Skip to content

Fix tests for PHP 5.x #703

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
Dec 12, 2017
Merged

Fix tests for PHP 5.x #703

merged 2 commits into from
Dec 12, 2017

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Dec 12, 2017

No description provided.

@jmikola jmikola merged commit f40db84 into mongodb:master Dec 12, 2017
jmikola added a commit that referenced this pull request Dec 12, 2017
@jmikola jmikola deleted the fix-5.x-tests branch December 12, 2017 21:00
@@ -602,7 +602,7 @@ static int phongo_execute_parse_options(mongoc_client_t* client, int server_id,
if (!process_read_concern(*driver_option, mongoc_opts TSRMLS_CC)) {
return false;
}
} else if ((!strcasecmp(string_key, "readPreference")) && (type == PHONGO_COMMAND_READ)) {
} else if ((!strcasecmp(string_key, "readPreference")) && (type == PHONGO_COMMAND_READ || type == PHONGO_COMMAND_RAW)) {
Copy link
Member Author

Choose a reason for hiding this comment

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

In eea07a0#diff-c06c6e1c9374aecabcf544157f9d0c26R564, a change was made to the PHP 7 code to check for PHONGO_COMMAND_RAW but was missed for PHP 5.

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.

1 participant