Skip to content

Commit 54cd588

Browse files
author
Kristina Chodorow
committed
win warnings MINOR
1 parent 9e9b87f commit 54cd588

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bson.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
#include <php.h>
19+
#include <zend_exceptions.h>
1920

2021
#ifdef WIN32
2122
# include <memory.h>
@@ -652,11 +653,12 @@ int php_mongo_write_update(buffer *buf, char *ns, int flags, zval *criteria, zva
652653
zval_to_bson(buf, HASH_P(newobj), NO_PREP TSRMLS_CC) == FAILURE) {
653654
efree(buf->start);
654655
zend_throw_exception_ex(mongo_ce_Exception, 0 TSRMLS_CC, "non-utf8 string: %s", MonGlo(errmsg));
655-
return;
656+
return FAILURE;
656657
}
657658

658659
php_mongo_serialize_size(buf->start+start, buf);
659660

661+
return SUCCESS;
660662
}
661663

662664
int php_mongo_write_delete(buffer *buf, char *ns, int flags, zval *criteria TSRMLS_DC) {

cursor.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,6 @@ PHP_METHOD(MongoCursor, explain) {
491491
/* {{{ MongoCursor->doQuery
492492
*/
493493
PHP_METHOD(MongoCursor, doQuery) {
494-
int sent;
495494
mongo_cursor *cursor;
496495
buffer buf;
497496
zval *errmsg;

0 commit comments

Comments
 (0)