diff options
| author | Marcus Boerger <helly@php.net> | 2002-12-05 22:15:37 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-12-05 22:15:37 +0000 |
| commit | 335786915a6a9c2d83b90cc4ae765e0838cf353d (patch) | |
| tree | 2f8a916593403b50f87ec1d73c4fd4b640c341e0 /ext/domxml/php_domxml.c | |
| parent | c8ac633540a542ec95187f22b0a5e5385eba33a3 (diff) | |
| download | php-git-335786915a6a9c2d83b90cc4ae765e0838cf353d.tar.gz | |
MFH
Diffstat (limited to 'ext/domxml/php_domxml.c')
| -rw-r--r-- | ext/domxml/php_domxml.c | 13 |
1 files changed, 8 insertions, 5 deletions
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); } |
