com php-src: fix pointer truncation on 64 bit: ext/odbc/php_o dbc.c

From: Date: Mon, 14 Mar 2016 15:44:27 +0000
Subject: com php-src: fix pointer truncation on 64 bit: ext/odbc/php_o dbc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91338@lists.php.net to get a copy of this message
Commit: 704a9aeea7148ec3fb2297c0df9bc14c274774c5 Author: Anatol Belski <ab@php.net> Mon, 14 Mar 2016 16:44:27 +0100 Parents: ab7764d99bbc0f1aecdf9da8cc770fe48a10d5d2 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=704a9aeea7148ec3fb2297c0df9bc14c274774c5 Log: fix pointer truncation on 64 bit Changed paths: M ext/odbc/php_odbc.c Diff: diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 0328871..e3c8e86 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;

« previous php.cvs (#91338) next »