Skip to content

Commit

Permalink
Another attempt to fix Mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jul 29, 2013
1 parent 54ee0fa commit c86a827
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ext/mvc/collection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,15 +1411,16 @@ PHP_METHOD(Phalcon_Mvc_Collection, save){
*/
ALLOC_INIT_ZVAL(options);
array_init(options);
add_assoc_bool_ex(options, SS("safe"), 1);
add_assoc_long_ex(options, SS("w"), 1);
Z_SET_ISREF_P(options);

params[0] = data;
params[1] = options;

/**
* Save the document
*/
call_user_function(EG(function_table), &collection, &func, status, 2, params TSRMLS_CC);
call_user_function(NULL, &collection, &func, status, 2, params TSRMLS_CC);
zval_ptr_dtor(&options);
}

Expand Down
4 changes: 2 additions & 2 deletions unit-tests/ci/install_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ else
phpenv config-add "$DIR/apc.ini"
fi

pecl install igbinary < /dev/null &
pecl upgrade mongo < /dev/null &
pecl install igbinary < /dev/null &
CFLAGS="-O1 -g" pecl upgrade mongo < /dev/null &

phpenv config-add "$DIR/memcache.ini"
wait

0 comments on commit c86a827

Please sign in to comment.