From 335786915a6a9c2d83b90cc4ae765e0838cf353d Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 5 Dec 2002 22:15:37 +0000 Subject: MFH --- ext/domxml/php_domxml.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'ext/domxml/php_domxml.c') diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index d6c73d4c98..7b34bf7d49 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -1309,10 +1309,12 @@ static void domxml_error(void *ctx, const char *msg, ...) { char buf[1024]; va_list ap; + TSRMLS_FETCH(); + va_start(ap, msg); vsnprintf(buf, 1024, msg, ap); va_end(ap); - php_error(E_WARNING, buf); + php_error_docref(NULL TSRMLS_CC, E_WARNING, buf); } static void domxml_error_ext(void *ctx, const char *msg, ...) @@ -1321,6 +1323,7 @@ static void domxml_error_ext(void *ctx, const char *msg, ...) xmlParserInputPtr input = NULL; char buf[1024]; va_list ap; + TSRMLS_FETCH(); va_start(ap, msg); vsnprintf(buf, 1024, msg, ap); @@ -1348,7 +1351,7 @@ static void domxml_error_ext(void *ctx, const char *msg, ...) } add_next_index_zval(ctxt->_private,errormessages); } - php_error(E_WARNING, buf); + php_error_docref(NULL TSRMLS_CC, E_WARNING, buf); } @@ -1356,8 +1359,8 @@ static void domxml_error_validate(void *ctx, const char *msg, ...) { domxml_ErrorCtxt *ctxt ; char buf[1024]; - va_list ap; + TSRMLS_FETCH(); va_start(ap, msg); vsnprintf(buf, 1024, msg, ap); @@ -1387,7 +1390,7 @@ static void domxml_error_validate(void *ctx, const char *msg, ...) if (ctxt->valid->node != NULL) { - /*php_error(E_WARNING,"nodename %s",(char *) ctxt->valid->name); + /*php_error_docref(NULL TSRMLS_CC, E_WARNING,"nodename %s",(char *) ctxt->valid->name); node = *ctxt->node;*/ } @@ -1395,7 +1398,7 @@ static void domxml_error_validate(void *ctx, const char *msg, ...) add_next_index_zval(ctxt->errors,errormessages); } - php_error(E_WARNING, buf); + php_error_docref(NULL TSRMLS_CC, E_WARNING, buf); } -- cgit v1.2.1