From 7d4fd3fd380a7fe9b497684775a38190786b93ba Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 27 Nov 2008 19:01:23 +0000 Subject: Fixed bug #46409 (__invoke method called outside of object context when using array_map) --- ext/sqlite/sqlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/sqlite/sqlite.c') diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index 20bb460bde..efc17af9b7 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -2415,7 +2415,7 @@ PHP_FUNCTION(sqlite_fetch_object) fci.function_table = &ce->function_table; fci.function_name = NULL; fci.symbol_table = NULL; - fci.object_pp = &return_value; + fci.object_ptr = return_value; fci.retval_ptr_ptr = &retval_ptr; if (ctor_params && Z_TYPE_P(ctor_params) != IS_NULL) { if (Z_TYPE_P(ctor_params) == IS_ARRAY) { @@ -2449,7 +2449,7 @@ PHP_FUNCTION(sqlite_fetch_object) fcc.function_handler = ce->constructor; fcc.calling_scope = EG(scope); fcc.called_scope = Z_OBJCE_P(return_value); - fcc.object_pp = &return_value; + fcc.object_ptr = 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); -- cgit v1.2.1