chregu Mon Oct 27 14:52:50 2003 EDT Modified files: /php-src/ext/dom document.c Log: use php_error_docref Index: php-src/ext/dom/document.c diff -u php-src/ext/dom/document.c:1.35 php-src/ext/dom/document.c:1.36 --- php-src/ext/dom/document.c:1.35 Mon Oct 27 10:32:22 2003 +++ php-src/ext/dom/document.c Mon Oct 27 14:52:50 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: document.c,v 1.35 2003/10/27 15:32:22 chregu Exp $ */ +/* $Id: document.c,v 1.36 2003/10/27 19:52:50 chregu Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -122,7 +122,7 @@ xmlParserCtxtPtr parser; parser = (xmlParserCtxtPtr) ctx; - php_error(level, "%s in %s, line: %d", msg, parser->input->filename, parser->input->line); + php_error_docref(NULL TSRMLS_CC, level, "%s in %s, line: %d", msg, parser->input->filename, parser->input->line); } /* }}} end php_dom_ctx_error */ @@ -1754,7 +1754,7 @@ source_len = xmlStrlen(source); ctxt = htmlCreateMemoryParserCtxt(source, source_len); } - ctxt->vctxt.error = php_dom_ctx_warning; + ctxt->vctxt.error = php_dom_ctx_error; ctxt->vctxt.warning = php_dom_ctx_warning; if (ctxt->sax != NULL) { ctxt->sax->error = php_dom_ctx_error;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php