summaryrefslogtreecommitdiff
path: root/ext/pdo/pdo_stmt.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-07-25 08:53:11 +0000
committerDmitry Stogov <dmitry@php.net>2008-07-25 08:53:11 +0000
commit013059c247185935ca7921533740e767e2630311 (patch)
tree5cb0ab61fb9885dd51a7ffc27d7ba991606565c2 /ext/pdo/pdo_stmt.c
parent6e228f0c76f7ef8848fb6425b1bd341b58814da6 (diff)
downloadphp-git-013059c247185935ca7921533740e767e2630311.tar.gz
Fixed uninitialized data
Diffstat (limited to 'ext/pdo/pdo_stmt.c')
-rwxr-xr-xext/pdo/pdo_stmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index 980cb8570d..897775f0e5 100755
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -753,6 +753,7 @@ static int do_fetch_class_prepare(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
fcc->initialized = 1;
fcc->function_handler = ce->constructor;
fcc->calling_scope = EG(scope);
+ fcc->called_scope = ce;
return 1;
} else if (stmt->fetch.cls.ctor_args) {
pdo_raise_impl_error(stmt->dbh, stmt, "HY000", "user-supplied class does not have a constructor, use NULL for the ctor_params parameter, or simply omit it" TSRMLS_CC);
@@ -849,6 +850,7 @@ static int make_callable_ex(pdo_stmt_t *stmt, zval *callable, zend_fcall_info *
fcc->initialized = 1;
fcc->function_handler = function_handler;
fcc->calling_scope = EG(scope);
+ fcc->called_scope = Z_OBJCE_PP(object);
fcc->object_pp = object;
return 1;