diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-04-27 18:46:27 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-04-27 18:46:27 +0200 |
commit | 16609880f8338134db08daf6bdcc42025f938fcd (patch) | |
tree | bcbd6f8b15f7a79d3a3383206e1c29d995c2d2b7 /ext/pdo_mysql | |
parent | 7ddfe73e69bd847c33bd69fb92d2f5f82b89c778 (diff) | |
download | php-git-16609880f8338134db08daf6bdcc42025f938fcd.tar.gz |
Fix #77944: Wrong meta pdo_type for bigint on LLP64
When actually fetching the data, bigint (unsigned) column values are
returned as integers on LLP64 architectures, so their pdo_type has to
be PDO::PARAM_INT accordingly.
Diffstat (limited to 'ext/pdo_mysql')
-rw-r--r-- | ext/pdo_mysql/mysql_statement.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index f4a3879998..2777f3ccc4 100644 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -876,7 +876,7 @@ static int pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, zend_long colno, zval *retu case MYSQL_TYPE_SHORT: case MYSQL_TYPE_INT24: case MYSQL_TYPE_LONG: -#if SIZEOF_LONG==8 +#if SIZEOF_ZEND_LONG==8 case MYSQL_TYPE_LONGLONG: #endif add_assoc_long(return_value, "pdo_type", PDO_PARAM_INT); |