fix possible NULL dereference

This commit is contained in:
Antony Dovgal 2006-03-27 16:43:02 +00:00
parent d28ec107ac
commit 036fc47efb

View File

@ -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) {