abies Fri Sep 12 17:02:44 2003 EDT
Modified files:
/php-src/ext/interbase interbase.c
Log:
Pointer size fix
Index: php-src/ext/interbase/interbase.c
diff -u php-src/ext/interbase/interbase.c:1.180 php-src/ext/interbase/interbase.c:1.181
--- php-src/ext/interbase/interbase.c:1.180 Thu Sep 11 19:11:18 2003
+++ php-src/ext/interbase/interbase.c Fri Sep 12 17:02:43 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: interbase.c,v 1.180 2003/09/11 23:11:18 abies Exp $ */
+/* $Id: interbase.c,v 1.181 2003/09/12 21:02:43 abies Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -26,7 +26,7 @@
#include "php.h"
-#define FILE_REVISION "$Revision: 1.180 $"
+#define FILE_REVISION "$Revision: 1.181 $"
#if HAVE_IBASE && !defined(VERSION_INFO_ONLY)
@@ -963,12 +963,14 @@
* 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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php