Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

win warnings MINOR

  • Loading branch information...
commit 54cd588e3188539a4f946927baa072465bc2114c 1 parent 9e9b87f
Kristina Chodorow authored
Showing with 3 additions and 2 deletions.
  1. +3 −1 bson.c
  2. +0 −1  cursor.c
View
4 bson.c
@@ -16,6 +16,7 @@
*/
#include <php.h>
+#include <zend_exceptions.h>
#ifdef WIN32
# include <memory.h>
@@ -652,11 +653,12 @@ int php_mongo_write_update(buffer *buf, char *ns, int flags, zval *criteria, zva
zval_to_bson(buf, HASH_P(newobj), NO_PREP TSRMLS_CC) == FAILURE) {
efree(buf->start);
zend_throw_exception_ex(mongo_ce_Exception, 0 TSRMLS_CC, "non-utf8 string: %s", MonGlo(errmsg));
- return;
+ return FAILURE;
}
php_mongo_serialize_size(buf->start+start, buf);
+ return SUCCESS;
}
int php_mongo_write_delete(buffer *buf, char *ns, int flags, zval *criteria TSRMLS_DC) {
View
1  cursor.c
@@ -491,7 +491,6 @@ PHP_METHOD(MongoCursor, explain) {
/* {{{ MongoCursor->doQuery
*/
PHP_METHOD(MongoCursor, doQuery) {
- int sent;
mongo_cursor *cursor;
buffer buf;
zval *errmsg;
Please sign in to comment.
Something went wrong with that request. Please try again.