summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorGeorg Richter <georg@php.net>2002-08-23 10:16:19 +0000
committerGeorg Richter <georg@php.net>2002-08-23 10:16:19 +0000
commit8153dfc8773873bb9824658b1f87cc1d98ab17ee (patch)
treedfff445fbed1a9d31f51620722ee489bf99e878c /ext/mysql/php_mysql.c
parenta6e8e723728a1b8976e9a24e77abe3e0b3e6c294 (diff)
downloadphp-git-8153dfc8773873bb9824658b1f87cc1d98ab17ee.tar.gz
fixed bug #16965
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index abba50c049..218e709349 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -699,13 +699,14 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
* and add a pointer to it with hashed_details as the key.
*/
if (!new_link && zend_hash_find(&EG(regular_list), hashed_details, hashed_details_length+1,(void **) &index_ptr)==SUCCESS) {
- int type, link;
+ int type;
+ long link;
void *ptr;
if (Z_TYPE_P(index_ptr) != le_index_ptr) {
MYSQL_DO_CONNECT_RETURN_FALSE();
}
- link = (int) index_ptr->ptr;
+ link = (long) index_ptr->ptr;
ptr = zend_list_find(link,&type); /* check if the link is still there */
if (ptr && (type==le_link || type==le_plink)) {
zend_list_addref(link);