summaryrefslogtreecommitdiff
path: root/ext/dom/domimplementation.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2003-08-24 10:23:43 (GMT)
committerRob Richards <rrichards@php.net>2003-08-24 10:23:43 (GMT)
commit09481c642b59737096d25518a290d8a3bb710042 (patch)
tree2a65d6e1eb05bcd737da282fe1814294cd069066 /ext/dom/domimplementation.c
parentea1b33438a64413b82aef0aa197c8f44e4277e78 (diff)
downloadphp-09481c642b59737096d25518a290d8a3bb710042.tar.gz
implement stricterrorcheck
fix clonenode cleanup error routines
Diffstat (limited to 'ext/dom/domimplementation.c')
-rw-r--r--ext/dom/domimplementation.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/ext/dom/domimplementation.c b/ext/dom/domimplementation.c
index c039f72..6b476e5 100644
--- a/ext/dom/domimplementation.c
+++ b/ext/dom/domimplementation.c
@@ -98,8 +98,7 @@ PHP_FUNCTION(dom_domimplementation_create_document_type)
if (uri->opaque != NULL) {
localname = xmlStrdup(uri->opaque);
if (xmlStrchr(localname, (xmlChar) ':') != NULL) {
- php_dom_throw_error(NAMESPACE_ERR, &return_value TSRMLS_CC);
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Namespace");
+ php_dom_throw_error(NAMESPACE_ERR, 1 TSRMLS_CC);
xmlFreeURI(uri);
xmlFree(localname);
RETURN_FALSE;
@@ -149,8 +148,7 @@ PHP_FUNCTION(dom_domimplementation_create_document)
RETURN_FALSE;
}
if (doctype->doc != NULL) {
- php_dom_throw_error(WRONG_DOCUMENT_ERR, &return_value TSRMLS_CC);
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "DocumentType: Wrong Document");
+ php_dom_throw_error(WRONG_DOCUMENT_ERR, 1 TSRMLS_CC);
RETURN_FALSE;
}
} else {
@@ -172,8 +170,7 @@ PHP_FUNCTION(dom_domimplementation_create_document)
if (localname != NULL) {
xmlFree(localname);
}
- php_dom_throw_error(errorcode, &return_value TSRMLS_CC);
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Namespace");
+ php_dom_throw_error(errorcode, 1 TSRMLS_CC);
RETURN_FALSE;
}
@@ -207,7 +204,7 @@ PHP_FUNCTION(dom_domimplementation_create_document)
xmlFreeDoc(docp);
xmlFree(localname);
/* Need some type of error here */
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unexpected Error");
+ php_error(E_WARNING, "Unexpected Error");
RETURN_FALSE;
}