com php-src: Fixed refcounting: ext/pdo/pdo_dbh.c

From: Date: Tue, 27 May 2014 21:28:38 +0000
Subject: com php-src: Fixed refcounting: ext/pdo/pdo_dbh.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78593@lists.php.net to get a copy of this message
Commit: 864aa7746fee41edb1b8f655eb3c4f62916b5896 Author: Dmitry Stogov <dmitry@zend.com> Wed, 28 May 2014 01:28:38 +0400 Parents: 52705631674a835c2e554bc75a795d92a652623c Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=864aa7746fee41edb1b8f655eb3c4f62916b5896 Log: Fixed refcounting Changed paths: M ext/pdo/pdo_dbh.c Diff: diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 88f6e4e..d6b4852 100644 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -883,7 +883,7 @@ static PHP_METHOD(PDO, getAttribute) array_init(return_value); add_next_index_str(return_value, STR_COPY(dbh->def_stmt_ce->name)); if (!Z_ISUNDEF(dbh->def_stmt_ctor_args)) { - Z_ADDREF(dbh->def_stmt_ctor_args); + if (Z_REFCOUNTED(dbh->def_stmt_ctor_args)) Z_ADDREF(dbh->def_stmt_ctor_args); add_next_index_zval(return_value, &dbh->def_stmt_ctor_args); } return;

« previous php.cvs (#78593) next »