summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2003-09-12 21:02:43 +0000
committerArd Biesheuvel <abies@php.net>2003-09-12 21:02:43 +0000
commit95b0fc58f73327f75436e31c598bd4f461d931dc (patch)
treea63c68258b9fe3a850605898349db7948da76a67 /ext
parent7fac56c5935fd02e3991c2a32cdc6f9fb61997c6 (diff)
downloadphp-git-95b0fc58f73327f75436e31c598bd4f461d931dc.tar.gz
Pointer size fix
Diffstat (limited to 'ext')
-rw-r--r--ext/interbase/interbase.c6
1 files changed, 4 insertions, 2 deletions
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);