From: Antony Dovgal Date: Tue, 28 Mar 2006 20:19:44 +0000 (+0000) Subject: prevent possible NULL dereference X-Git-Tag: php-5.1.3RC2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08e6fded563451dd91d8b529037fbf06939fd6c3;p=php prevent possible NULL dereference --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 9e4cbf757f..4217e4b81f 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -663,6 +663,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) {