diff options
author | Anatol Belski <ab@php.net> | 2016-03-14 16:44:27 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-03-14 16:44:27 +0100 |
commit | 704a9aeea7148ec3fb2297c0df9bc14c274774c5 (patch) | |
tree | c1c33690d4741fce6e36f6f8ae36ae4e094dc6bf /ext/odbc | |
parent | ab7764d99bbc0f1aecdf9da8cc770fe48a10d5d2 (diff) | |
download | php-git-704a9aeea7148ec3fb2297c0df9bc14c274774c5.tar.gz |
fix pointer truncation on 64 bit
Diffstat (limited to 'ext/odbc')
-rw-r--r-- | ext/odbc/php_odbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 03288713c9..e3c8e86a4e 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -1535,7 +1535,7 @@ PHP_FUNCTION(odbc_cursor) result->stmt, state, &error, errormsg, sizeof(errormsg)-1, &errormsgsize); if (!strncmp(state,"S1015",5)) { - snprintf(cursorname, max_len+1, "php_curs_%d", (int)result->stmt); + snprintf(cursorname, max_len+1, "php_curs_" ZEND_ULONG_FMT, (zend_ulong)result->stmt); if (SQLSetCursorName(result->stmt,cursorname,SQL_NTS) != SQL_SUCCESS) { odbc_sql_error(result->conn_ptr, result->stmt, "SQLSetCursorName"); RETVAL_FALSE; |