From: Antony Dovgal Date: Mon, 27 Mar 2006 16:43:02 +0000 (+0000) Subject: fix possible NULL dereference X-Git-Tag: RELEASE_1_3~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=036fc47efbb5dd8acb2f78bc441147d29511768e;p=php fix possible NULL dereference --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 012e3914e0..0ec5d16d68 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) {