]> granicus.if.org Git - php/commitdiff
- Fixed bugs #33431, #33432 ("int" used instead of "long" in parameter parsing)
authorfoobar <sniper@php.net>
Sun, 26 Jun 2005 22:34:26 +0000 (22:34 +0000)
committerfoobar <sniper@php.net>
Sun, 26 Jun 2005 22:34:26 +0000 (22:34 +0000)
ext/dom/document.c
ext/dom/namednodemap.c
ext/dom/nodelist.c

index 6a973e2baca0a526b8cb15613d8b971919fb5f9d..28c1cb4f0268f1db17c36f4edf4afbcef1ef92cb 100644 (file)
@@ -1751,7 +1751,8 @@ PHP_FUNCTION(dom_document_xinclude)
        zval *id;
        xmlDoc *docp;
        xmlNodePtr root;
-       int err, flags = 0; 
+       long flags = 0; 
+       int err;
        dom_object *intern;
 
        if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &id, dom_document_class_entry, &flags) == FAILURE) {
index c3d1f1648dbddcee40699f0b8b026aa5b14479b9..98614cf9aa89495691af288e0e0bdf81c2cad193 100644 (file)
@@ -167,7 +167,8 @@ Since:
 PHP_FUNCTION(dom_namednodemap_item)
 {
        zval *id, *rv = NULL;
-       int index, ret;
+       long index;
+       int ret;
        dom_object *intern;
        xmlNodePtr itemnode = NULL;
 
index 9421fac1157d50e3abd3aa118d0b7eef5f3310fc..a942b9572428b0c549aec8ef0cc7775b1899cd7a 100644 (file)
@@ -100,7 +100,8 @@ Since:
 PHP_FUNCTION(dom_nodelist_item)
 {
        zval *id, *rv = NULL;
-       int index, ret;
+       long index;
+       int ret;
        dom_object *intern;
        xmlNodePtr itemnode = NULL;