Skip to content

Commit a081085

Browse files
committed
Merge pull request #703
2 parents 87d7024 + f40db84 commit a081085

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php_phongo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static int phongo_execute_parse_options(mongoc_client_t* client, int server_id,
602602
if (!process_read_concern(*driver_option, mongoc_opts TSRMLS_CC)) {
603603
return false;
604604
}
605-
} else if ((!strcasecmp(string_key, "readPreference")) && (type == PHONGO_COMMAND_READ)) {
605+
} else if ((!strcasecmp(string_key, "readPreference")) && (type == PHONGO_COMMAND_READ || type == PHONGO_COMMAND_RAW)) {
606606
if (!process_read_preference(*driver_option, mongoc_opts, zreadPreference, client, server_id TSRMLS_CC)) {
607607
return false;
608608
}

tests/server/server-executeCommand-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object(stdClass)#%d (%d) {
6666
}
6767
}
6868
["cursor"]=>
69-
object(stdClass)#16 (0) {
69+
object(stdClass)#%d (%d) {
7070
}%A
7171
}
7272
Set profile level to 0 successfully: yes

0 commit comments

Comments
 (0)