diff options
| author | Xinchen Hui <laruence@php.net> | 2014-06-20 11:40:53 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@php.net> | 2014-06-20 11:40:53 +0800 |
| commit | 80108a16072c335050cfa778456ef667f480cf91 (patch) | |
| tree | 1a14f8518b3e877f557c63c5463e5e1983424275 /ext | |
| parent | 73630a1fdc3f740110792682618b6a33ae8bc46e (diff) | |
| download | php-git-80108a16072c335050cfa778456ef667f480cf91.tar.gz | |
Fixed PDO_PARAM_ZVAL
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/pdo/pdo_stmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 6f74889980..989b0969c8 100644 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -561,7 +561,7 @@ static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *typ 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 *zv = (zval**)value; ZVAL_ZVAL(dest, zv, need_copy, 1); } else { ZVAL_NULL(dest); |
