summaryrefslogtreecommitdiff
path: root/ext/dom/namednodemap.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-03-29 21:05:16 +0000
committerMarcus Boerger <helly@php.net>2004-03-29 21:05:16 +0000
commit904dac52e2f1445899598d727c7fb511defb9d10 (patch)
tree92e72cdf366ea4627d4bf8112a8016ade9e2eb06 /ext/dom/namednodemap.c
parent585af2418b4b02e8d0ff5b6ebf0eafde8dbe16c9 (diff)
downloadphp-git-904dac52e2f1445899598d727c7fb511defb9d10.tar.gz
DOM_RET_OBJ for return_value needs to be followed by return
Diffstat (limited to 'ext/dom/namednodemap.c')
-rw-r--r--ext/dom/namednodemap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/dom/namednodemap.c b/ext/dom/namednodemap.c
index cf814bf3f7..6e6c57f3b7 100644
--- a/ext/dom/namednodemap.c
+++ b/ext/dom/namednodemap.c
@@ -132,6 +132,7 @@ PHP_FUNCTION(dom_namednodemap_get_named_item)
if (itemnode) {
DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj);
+ return;
} else {
RETVAL_NULL();
}
@@ -179,7 +180,6 @@ PHP_FUNCTION(dom_namednodemap_item)
if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Ol", &id, dom_namednodemap_class_entry, &index) == FAILURE) {
return;
}
-
if (index >= 0) {
intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC);
@@ -208,6 +208,7 @@ PHP_FUNCTION(dom_namednodemap_item)
if (itemnode) {
DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj);
+ return;
}
}
@@ -258,6 +259,7 @@ PHP_FUNCTION(dom_namednodemap_get_named_item_ns)
if (itemnode) {
DOM_RET_OBJ(rv, itemnode, &ret, objmap->baseobj);
+ return;
} else {
RETVAL_NULL();
}