summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2003-08-31 12:41:53 +0000
committerZeev Suraski <zeev@php.net>2003-08-31 12:41:53 +0000
commit8767205afa446d82faa2c37fd1e0de4f002660fc (patch)
tree2ec64c120563be778ee9ad28a13ac33fa6070cef /ext/sqlite/sqlite.c
parentf9ee319152b012aa292ae548bb1ecfdfc9ce1876 (diff)
downloadphp-git-8767205afa446d82faa2c37fd1e0de4f002660fc.tar.gz
Fix Win32 linkage problems
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c8
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);