From 77cf78caa17d2e5b556eff1eadd0ba22f32acf00 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 23 Feb 2005 00:29:44 +0000 Subject: [PATCH] - Make ctor args optional --- ext/pdo/pdo_dbh.c | 2 ++ 1 file changed, 2 insertions(+) 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;