mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
prevent possible NULL dereference
This commit is contained in:
parent
cfbcb43d63
commit
08e6fded56
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user