prevent possible NULL dereference

This commit is contained in:
Antony Dovgal 2006-03-28 20:19:44 +00:00
parent cfbcb43d63
commit 08e6fded56

View File

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