Compiler warning fixes.

This commit is contained in:
Ilia Alshanetsky 2003-12-21 18:22:14 +00:00
parent cba426ca13
commit 72da689340
3 changed files with 8 additions and 0 deletions

View file

@ -1526,6 +1526,8 @@ _dom_document_schema_validate(INTERNAL_FUNCTION_PARAMETERS, int type)
/* If loading from memory, we need to set the base directory for the document
but it is not apparent how to do that for schema's */
break;
default:
return;
}
xmlSchemaSetParserErrors(parser,
@ -1609,6 +1611,8 @@ _dom_document_relaxNG_validate(INTERNAL_FUNCTION_PARAMETERS, int type)
/* If loading from memory, we need to set the base directory for the document
but it is not apparent how to do that for schema's */
break;
default:
return;
}
xmlRelaxNGSetParserErrors(parser,

View file

@ -200,6 +200,8 @@ PHP_FUNCTION(dom_namednodemap_item)
itemnode = curnode;
}
}
} else {
RETVAL_NULL();
}
if (itemnode) {

View file

@ -134,6 +134,8 @@ PHP_FUNCTION(dom_nodelist_item)
}
}
}
} else {
RETVAL_NULL();
}
if (itemnode) {