diff --git a/ext/mvc/collection.c b/ext/mvc/collection.c index 1c4e84de494..d487ea04c3b 100644 --- a/ext/mvc/collection.c +++ b/ext/mvc/collection.c @@ -1411,7 +1411,8 @@ 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; @@ -1419,7 +1420,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save){ /** * 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); } diff --git a/unit-tests/ci/install_prereqs.sh b/unit-tests/ci/install_prereqs.sh index 9a95ae6e106..5a956701135 100755 --- a/unit-tests/ci/install_prereqs.sh +++ b/unit-tests/ci/install_prereqs.sh @@ -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