diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 43adca0a0e3..ec9cf50e99b 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -494,6 +494,8 @@ static PHP_METHOD(PDO, prepare) RETURN_FALSE; } ctor_args = *item; + } else { + ctor_args = NULL; } } else { dbstmt_ce = pdo_dbstmt_ce;