diff options
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index 5b1eb922d9..85e3f6691e 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -276,6 +276,9 @@ zend_module_entry sqlite_module_entry = { #ifdef COMPILE_DL_SQLITE ZEND_GET_MODULE(sqlite) +# ifdef PHP_WIN32 +# include "zend_arg_defs.c" +# endif #endif static int php_sqlite_callback_invalidator(struct php_sqlite_agg_functions *funcs TSRMLS_DC) @@ -1754,10 +1757,15 @@ PHP_FUNCTION(sqlite_fetch_object) } fci.no_separation = 1; + fcc.initialized = 1; + fcc.function_handler = ce->constructor; + fcc.calling_scope = EG(scope); + fcc.object_pp = &return_value; + if (zend_call_function(&fci, &fcc TSRMLS_CC) == FAILURE) { zend_throw_exception_ex(sqlite_ce_exception, 0 TSRMLS_CC, "Could not execute %s::%s()", class_name, ce->constructor->common.function_name); |