diff options
author | Anatol Belski <ab@php.net> | 2014-09-14 12:18:52 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-14 12:18:52 +0200 |
commit | cbf530c7c065e8fd7009517a7ef3c81bc7e33a02 (patch) | |
tree | 98c4e04c04fc1a2616f47f016706ad7d37c53514 /ext/odbc/php_odbc.c | |
parent | 8d075b6e4dbf4599e7d26aa3f7043e81089ca078 (diff) | |
download | php-git-cbf530c7c065e8fd7009517a7ef3c81bc7e33a02.tar.gz |
fix possible pointer truncation
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r-- | ext/odbc/php_odbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 02af2d94ca..c6dc8289e1 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -2615,13 +2615,13 @@ try_and_get_another_connection: zend_resource *index_ptr, new_index_ptr; if ((index_ptr = zend_hash_str_find_ptr(&EG(regular_list), hashed_details, hashed_len)) != NULL) { - int conn_id; + zend_ulong conn_id; zend_resource *p; if (index_ptr->type != le_index_ptr) { RETURN_FALSE; } - conn_id = (int)index_ptr->ptr; + conn_id = (zend_ulong)index_ptr->ptr; p = zend_hash_index_find_ptr(&EG(regular_list), conn_id); /* check if the connection is still there */ if (p && p->ptr && (p->type == le_conn || p->type == le_pconn)) { |