diff options
| author | Hannes Magnusson <bjori@php.net> | 2006-10-08 13:34:24 +0000 |
|---|---|---|
| committer | Hannes Magnusson <bjori@php.net> | 2006-10-08 13:34:24 +0000 |
| commit | 176b72284c06793e51180eca0a03af1c8691d841 (patch) | |
| tree | 917632aec222a34e274711b7bd19c4f6372187fd /ext/dom | |
| parent | 32d1b3ad5584b76b27024df186758b94c42c721a (diff) | |
| download | php-git-176b72284c06793e51180eca0a03af1c8691d841.tar.gz | |
Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
Diffstat (limited to 'ext/dom')
| -rw-r--r-- | ext/dom/document.c | 6 | ||||
| -rw-r--r-- | ext/dom/node.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c index 8bebb417e0..92890d0cc2 100644 --- a/ext/dom/document.c +++ b/ext/dom/document.c @@ -2302,7 +2302,7 @@ PHP_METHOD(domdocument, registerNodeClass) } if (basece == NULL || ! instanceof_function(basece, dom_node_class_entry TSRMLS_CC)) { - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s is not derived from DOMNode.", baseclass); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s is not derived from DOMNode", baseclass); return; } @@ -2319,11 +2319,11 @@ PHP_METHOD(domdocument, registerNodeClass) DOM_GET_OBJ(docp, id, xmlDocPtr, intern); if (dom_set_doc_classmap(intern->document, basece, ce TSRMLS_CC) == FAILURE) { - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s could not be registered.", extendedclass); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s could not be registered", extendedclass); } RETURN_TRUE; } else { - php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s is not derived from %s.", extendedclass, baseclass); + php_error_docref(NULL TSRMLS_CC, E_ERROR, "Class %s is not derived from %s", extendedclass, baseclass); } RETURN_FALSE; diff --git a/ext/dom/node.c b/ext/dom/node.c index 5bc3cf71f0..1169535ecb 100644 --- a/ext/dom/node.c +++ b/ext/dom/node.c @@ -1736,7 +1736,7 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) if (file_type == IS_UNICODE) { efree(file); } - php_error_docref(NULL TSRMLS_CC, E_WARNING, "XPath query did not return a nodeset."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "XPath query did not return a nodeset"); RETURN_FALSE; } } @@ -1835,7 +1835,7 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) xmlXPathFreeObject(xpathobjp); } xmlXPathFreeContext(ctxp); - php_error_docref(NULL TSRMLS_CC, E_WARNING, "XPath query did not return a nodeset."); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "XPath query did not return a nodeset"); RETURN_FALSE; } } |
