Browse Source

- Fixed bugs #33431, #33432 ("int" used instead of "long" in parameter parsing)

PHP-5.1
foobar 21 years ago
parent
commit
2967f6116f
  1. 3
      ext/dom/document.c
  2. 3
      ext/dom/namednodemap.c
  3. 3
      ext/dom/nodelist.c

3
ext/dom/document.c

@ -1751,7 +1751,8 @@ PHP_FUNCTION(dom_document_xinclude)
zval *id; zval *id;
xmlDoc *docp; xmlDoc *docp;
xmlNodePtr root; xmlNodePtr root;
int err, flags = 0;
long flags = 0;
int err;
dom_object *intern; dom_object *intern;
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &id, dom_document_class_entry, &flags) == FAILURE) { if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O|l", &id, dom_document_class_entry, &flags) == FAILURE) {

3
ext/dom/namednodemap.c

@ -167,7 +167,8 @@ Since:
PHP_FUNCTION(dom_namednodemap_item) PHP_FUNCTION(dom_namednodemap_item)
{ {
zval *id, *rv = NULL; zval *id, *rv = NULL;
int index, ret;
long index;
int ret;
dom_object *intern; dom_object *intern;
xmlNodePtr itemnode = NULL; xmlNodePtr itemnode = NULL;

3
ext/dom/nodelist.c

@ -100,7 +100,8 @@ Since:
PHP_FUNCTION(dom_nodelist_item) PHP_FUNCTION(dom_nodelist_item)
{ {
zval *id, *rv = NULL; zval *id, *rv = NULL;
int index, ret;
long index;
int ret;
dom_object *intern; dom_object *intern;
xmlNodePtr itemnode = NULL; xmlNodePtr itemnode = NULL;

Loading…
Cancel
Save