com php-src: Actually, I don't know how it works. (maybe I should re-start again :<): ext/pdo/pdo_stmt.c ext/pdo_mysql/mysql_sta tement.c

From: Date: Mon, 23 Jun 2014 07:35:53 +0000
Subject: com php-src: Actually, I don't know how it works. (maybe I should re-start again :<): ext/pdo/pdo_stmt.c ext/pdo_mysql/mysql_sta tement.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-79007@lists.php.net to get a copy of this message
Commit: c135ca0a9de17e75f5292db8a751eac55e2ae20f Author: Xinchen Hui <laruence@php.net> Mon, 23 Jun 2014 15:35:53 +0800 Parents: 87b667221ed145bb1992abf3b10072bc0462600f Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c135ca0a9de17e75f5292db8a751eac55e2ae20f Log: Actually, I don't know how it works. (maybe I should re-start again :<) Changed paths: M ext/pdo/pdo_stmt.c M ext/pdo_mysql/mysql_statement.c Diff: diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 989b096..c887802 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -560,9 +560,7 @@ static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *typ switch (type) { case PDO_PARAM_ZVAL: if (value && value_len == sizeof(zval)) { - int need_copy = (new_type != PDO_PARAM_ZVAL || stmt->dbh->stringify) ? 1 : 0; - zval *zv = (zval**)value; - ZVAL_ZVAL(dest, zv, need_copy, 1); + ZVAL_COPY_VALUE(dest, value); } else { ZVAL_NULL(dest); } diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index 29f608e..2c0fc85 100644 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -746,7 +746,7 @@ static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsig } #if PDO_USE_MYSQLND if (S->stmt) { - //??? Z_TRY_ADDREF(S->stmt->data->result_bind[colno].zv); + Z_TRY_ADDREF(S->stmt->data->result_bind[colno].zv); *ptr = (char*)&S->stmt->data->result_bind[colno].zv; *len = sizeof(zval); PDO_DBG_RETURN(1);

« previous php.cvs (#79007) next »