]> granicus.if.org Git - php/commitdiff
Fix for 64 bit platforms (by Joe Orton)
authorRob Richards <rrichards@php.net>
Mon, 2 Jun 2003 18:58:48 +0000 (18:58 +0000)
committerRob Richards <rrichards@php.net>
Mon, 2 Jun 2003 18:58:48 +0000 (18:58 +0000)
ext/domxml/php_domxml.c

index 398f87066e6b408df64c3d61030e732d90204a7c..41a1f5bd06e9750afef5f42506b70caaaf116209 100644 (file)
@@ -858,7 +858,7 @@ static void php_xsltstylesheet_set_object(zval *wrapper, void *obj, int rsrc_typ
 
        MAKE_STD_ZVAL(addr);
        Z_TYPE_P(addr) = IS_LONG;
-       Z_LVAL_P(addr) = (int) obj;
+       Z_LVAL_P(addr) = (long) obj;
 
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL);
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL);
@@ -972,7 +972,7 @@ static void php_xpath_set_context(zval *wrapper, void *obj, int rsrc_type TSRMLS
 
        MAKE_STD_ZVAL(addr);
        Z_TYPE_P(addr) = IS_LONG;
-       Z_LVAL_P(addr) = (int) obj;
+       Z_LVAL_P(addr) = (long) obj;
 
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL);
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL);
@@ -1027,7 +1027,7 @@ static void php_xmlparser_set_object(zval *wrapper, void *obj, int rsrc_type TSR
 
        MAKE_STD_ZVAL(addr);
        Z_TYPE_P(addr) = IS_LONG;
-       Z_LVAL_P(addr) = (int) obj;
+       Z_LVAL_P(addr) = (long) obj;
 
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL);
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL);
@@ -1144,7 +1144,7 @@ static void php_dom_set_object(zval *wrapper, void *obj, int rsrc_type TSRMLS_DC
 
        MAKE_STD_ZVAL(addr);
        Z_TYPE_P(addr) = IS_LONG;
-       Z_LVAL_P(addr) = (int) obj;
+       Z_LVAL_P(addr) = (long) obj;
 
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 0, &handle, sizeof(zval *), NULL);
        zend_hash_index_update(Z_OBJPROP_P(wrapper), 1, &addr, sizeof(zval *), NULL);