]> granicus.if.org Git - php/commitdiff
Compiler warning fixes.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 21 Dec 2003 18:22:14 +0000 (18:22 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 21 Dec 2003 18:22:14 +0000 (18:22 +0000)
ext/dom/document.c
ext/dom/namednodemap.c
ext/dom/nodelist.c

index 2d6556c63bdec918338df82fdb21e29cf2fe121c..914b659f87effb48fa17c52e50258f646d864b68 100644 (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,
index 1e4eefbe23c01800e503bbdb9ab511c2ad5dd129..689ae87994da8f62974f0dff8e9c8f7db8af1e02 100644 (file)
@@ -200,6 +200,8 @@ PHP_FUNCTION(dom_namednodemap_item)
                                itemnode = curnode;
                        }
                }
+       } else {
+               RETVAL_NULL();
        }
 
        if (itemnode) {
index 5ecd2d763e7e801ae925c72ce2db297b3522e3a4..56256987c783443d2a9a47ed947321fbd26f8563 100644 (file)
@@ -134,6 +134,8 @@ PHP_FUNCTION(dom_nodelist_item)
                                }
                        }
                }
+       } else {
+               RETVAL_NULL();
        }
 
        if (itemnode) {