Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #851
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikola committed Jun 4, 2015
2 parents c8ba0ad + ae466e7 commit f37414d
Show file tree
Hide file tree
Showing 22 changed files with 1,078 additions and 82 deletions.
4 changes: 2 additions & 2 deletions api/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ int php_mongo_api_update_single(mongo_buffer *buf, char *ns, char *collection, p
int php_mongo_api_get_reply(mongo_con_manager *manager, mongo_connection *connection, mongo_server_options *options, int socket_read_timeout, int request_id, zval **retval TSRMLS_DC) /* {{{ */
{
int status = 0;
int data_len = 0;
char buf[REPLY_HEADER_SIZE];
char *data;
size_t data_len = 0;
char *error_message;
mongo_msg_header msg_header;
php_mongo_reply dbreply;
Expand Down Expand Up @@ -594,7 +594,7 @@ int php_mongo_api_get_reply(mongo_con_manager *manager, mongo_connection *connec
return 1;
}

bson_to_zval(data, Z_ARRVAL_PP(retval), 0 TSRMLS_CC);
bson_to_zval_iter(data, data_len, Z_ARRVAL_PP(retval), 0 TSRMLS_CC);
efree(data);

return 0;
Expand Down
Loading

0 comments on commit f37414d

Please sign in to comment.