mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
fix compile issue - TSRMLS_FETCH is only temporary until errors handled
This commit is contained in:
parent
a1d8121bda
commit
d1c41150c6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user