diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-12-21 18:22:14 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-12-21 18:22:14 +0000 |
commit | 72da689340adba6ead1ec011b2fd9a355c3b080d (patch) | |
tree | f4eda2ae49de76fcfb3c6a970bcf3cdee650c677 /ext/dom | |
parent | cba426ca138d051ccee81750ac0b6344fceb8fcb (diff) | |
download | php-git-72da689340adba6ead1ec011b2fd9a355c3b080d.tar.gz |
Compiler warning fixes.
Diffstat (limited to 'ext/dom')
-rw-r--r-- | ext/dom/document.c | 4 | ||||
-rw-r--r-- | ext/dom/namednodemap.c | 2 | ||||
-rw-r--r-- | ext/dom/nodelist.c | 2 |
3 files changed, 8 insertions, 0 deletions
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) { |