From 52793c14d951b12f0eca806bb55a97011a322243 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Sat, 20 Aug 2016 12:42:03 +0200 Subject: Improvements to fix #72714, suggested by nikic --- ext/xml/xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/xml/xml.c') diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 5d5c2e4c19..5912f9143d 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -67,7 +67,7 @@ ZEND_GET_MODULE(xml) /* }}} */ -#define SKIP_TAGSTART(str) ((str) + (parser->toffset > strlen(str) ? strlen(str) : + parser->toffset)) +#define SKIP_TAGSTART(str) ((str) + (parser->toffset > strlen(str) ? strlen(str) : parser->toffset)) /* {{{ function prototypes */ @@ -1638,7 +1638,7 @@ PHP_FUNCTION(xml_parser_set_option) convert_to_long_ex(val); parser->toffset = Z_LVAL_PP(val); if (parser->toffset < 0) { - php_error_docref(NULL TSRMLS_CC, E_NOTICE, "tagstart ignored"); + php_error_docref(NULL TSRMLS_CC, E_NOTICE, "tagstart ignored, because it is out of range"); parser->toffset = 0; } break; -- cgit v1.2.1