summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-08-05 23:57:51 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-08-05 23:57:51 +0000
commitee656c4b32efbf32900bb4da1c35c13a07734d1a (patch)
tree2ce16d6e75c0785a6efc28fd25c68f2581e3bf18
parent15e14aeca588818c1cc60e6c3dcbc804ab6b2f3d (diff)
downloadphp-git-ee656c4b32efbf32900bb4da1c35c13a07734d1a.tar.gz
php_error() -> php_error_docref()
-rwxr-xr-xext/simplexml/php_simplexml_exports.h2
-rw-r--r--ext/simplexml/simplexml.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/simplexml/php_simplexml_exports.h b/ext/simplexml/php_simplexml_exports.h
index 6d6e7b8baf..445605fdf5 100755
--- a/ext/simplexml/php_simplexml_exports.h
+++ b/ext/simplexml/php_simplexml_exports.h
@@ -35,7 +35,7 @@
__n = (__s)->node->node; \
} else { \
__n = NULL; \
- php_error(E_WARNING, "Node no longer exists"); \
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Node no longer exists"); \
} \
}
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index 4be4762328..f96403b485 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -92,7 +92,7 @@ static void _node_as_zval(php_sxe_object *sxe, xmlNodePtr node, zval *value, int
__n = (__s)->node->node; \
} else { \
__n = NULL; \
- php_error(E_WARNING, "Node no longer exists"); \
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Node no longer exists"); \
} \
}
@@ -295,7 +295,7 @@ change_node_zval(xmlNodePtr node, zval *value)
}
break;
default:
- php_error(E_WARNING, "It is not possible to assign complex types to nodes");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "It is not possible to assign complex types to nodes");
break;
}
}
@@ -420,7 +420,7 @@ next_iter:
}
change_node_zval(newnode, value);
} else if (counter > 1) {
- php_error(E_WARNING, "Cannot assign to an array of nodes (duplicate subnodes or attr detected)\n");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot assign to an array of nodes (duplicate subnodes or attr detected)\n");
} else {
if (attribs) {
switch (Z_TYPE_P(value)) {
@@ -433,7 +433,7 @@ next_iter:
newnode = (xmlNodePtr)xmlNewProp(node, name, Z_STRVAL_P(value));
break;
default:
- php_error(E_WARNING, "It is not yet possible to assign complex types to attributes");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "It is not yet possible to assign complex types to attributes");
}
}
}
@@ -1567,7 +1567,7 @@ PHP_FUNCTION(simplexml_import_dom)
if (nodep) {
if (nodep->doc == NULL) {
- php_error(E_WARNING, "Imported Node must have associated Document");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Imported Node must have associated Document");
RETURN_NULL();
}
if (nodep->type == XML_DOCUMENT_NODE || nodep->type == XML_HTML_DOCUMENT_NODE) {
@@ -1592,7 +1592,7 @@ PHP_FUNCTION(simplexml_import_dom)
return_value->type = IS_OBJECT;
return_value->value.obj = php_sxe_register_object(sxe TSRMLS_CC);
} else {
- php_error(E_WARNING, "Invalid Nodetype to import");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid Nodetype to import");
RETVAL_NULL();
}
}