From: Marcus Boerger Date: Wed, 23 Feb 2005 00:29:44 +0000 (+0000) Subject: - Make ctor args optional X-Git-Tag: RELEASE_0_3~251 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77cf78caa17d2e5b556eff1eadd0ba22f32acf00;p=php - Make ctor args optional --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 43adca0a0e..ec9cf50e99 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;