From: Ilia Alshanetsky Date: Sun, 21 Dec 2003 18:22:14 +0000 (+0000) Subject: Compiler warning fixes. X-Git-Tag: php-5.0.0b3~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72da689340adba6ead1ec011b2fd9a355c3b080d;p=php Compiler warning fixes. --- diff --git a/ext/dom/document.c b/ext/dom/document.c index 2d6556c63b..914b659f87 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -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, diff --git a/ext/dom/namednodemap.c b/ext/dom/namednodemap.c index 1e4eefbe23..689ae87994 100644 --- a/ext/dom/namednodemap.c +++ b/ext/dom/namednodemap.c @@ -200,6 +200,8 @@ PHP_FUNCTION(dom_namednodemap_item) itemnode = curnode; } } + } else { + RETVAL_NULL(); } if (itemnode) { diff --git a/ext/dom/nodelist.c b/ext/dom/nodelist.c index 5ecd2d763e..56256987c7 100644 --- a/ext/dom/nodelist.c +++ b/ext/dom/nodelist.c @@ -134,6 +134,8 @@ PHP_FUNCTION(dom_nodelist_item) } } } + } else { + RETVAL_NULL(); } if (itemnode) {