From 95b0fc58f73327f75436e31c598bd4f461d931dc Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Fri, 12 Sep 2003 21:02:43 +0000 Subject: Pointer size fix --- ext/interbase/interbase.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index c07edf4bb5..04baa45756 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -963,12 +963,14 @@ static void _php_ibase_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) * and add a pointer to it with hashed_details as the key. */ if ( (zend_hash_find(&EG(regular_list), hashed_details, hashed_details_length + 1, (void *) &index_ptr) == SUCCESS) ) { - int type, xlink; + int type; + long xlink; void *ptr; + if (Z_TYPE_P(index_ptr) != le_index_ptr) { RETURN_FALSE; } - xlink = (int) index_ptr->ptr; + xlink = (long) index_ptr->ptr; ptr = zend_list_find(xlink, &type); /* check if the xlink is still there */ if (ptr && (type == le_link || type == le_plink)) { zend_list_addref(xlink); -- cgit v1.2.1