From 036fc47efbb5dd8acb2f78bc441147d29511768e Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 27 Mar 2006 16:43:02 +0000 Subject: [PATCH] fix possible NULL dereference --- ext/pdo/pdo_stmt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 012e3914e0f..0ec5d16d68b 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -611,6 +611,7 @@ static int do_fetch_class_prepare(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */ if (!ce) { stmt->fetch.cls.ce = ZEND_STANDARD_CLASS_DEF_PTR; + ce = ZEND_STANDARD_CLASS_DEF_PTR; } if (ce->constructor) {