fix compile issue - TSRMLS_FETCH is only temporary until errors handled

This commit is contained in:
Rob Richards 2003-07-11 14:19:05 +00:00
parent a1d8121bda
commit d1c41150c6

View File

@ -115,10 +115,10 @@ static void php_dom_ctx_error(void *ctx, const char *msg, ...) {
va_list ap;
char *buf;
int len;
TSRMLS_FETCH();
xmlParserCtxtPtr parser;
TSRMLS_FETCH();
parser = (xmlParserCtxtPtr) ctx;
va_start(ap, msg);
@ -129,6 +129,7 @@ static void php_dom_ctx_error(void *ctx, const char *msg, ...) {
while (len && buf[--len] == '\n') {
buf[len] = '\0';
}
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s in %s, line: %d", buf, parser->input->filename, parser->input->line);
efree(buf);
}