summaryrefslogtreecommitdiff
path: root/ext/xml
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-08-20 12:50:48 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-08-20 12:50:48 +0200
commit9988863d37b67af934a9b8d125b84862d6ca9016 (patch)
tree9551b641ab58c658d77751cb0f717dd0f068c6ff /ext/xml
parent29849e5ba12b186b9af0839fc80342682fdc5d51 (diff)
parent39172d44d8cdb9caf76ae851e3bb8f21091564ea (diff)
downloadphp-git-9988863d37b67af934a9b8d125b84862d6ca9016.tar.gz
Merge branch 'PHP-7.0' into PHP-7.1
Diffstat (limited to 'ext/xml')
-rw-r--r--ext/xml/tests/bug72714.phpt2
-rw-r--r--ext/xml/xml.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/xml/tests/bug72714.phpt b/ext/xml/tests/bug72714.phpt
index 192c8f6949..7b44e1fd11 100644
--- a/ext/xml/tests/bug72714.phpt
+++ b/ext/xml/tests/bug72714.phpt
@@ -29,7 +29,7 @@ parse(20);
?>
===DONE===
--EXPECTF--
-Notice: xml_parser_set_option(): tagstart ignored in %s%ebug72714.php on line %d
+Notice: xml_parser_set_option(): tagstart ignored, because it is out of range in %s%ebug72714.php on line %d
string(9) "NS1:TOTAL"
string(0) ""
===DONE===
diff --git a/ext/xml/xml.c b/ext/xml/xml.c
index c37fbf8ede..f0da47dc5b 100644
--- a/ext/xml/xml.c
+++ b/ext/xml/xml.c
@@ -70,7 +70,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 */
@@ -1606,7 +1606,7 @@ PHP_FUNCTION(xml_parser_set_option)
convert_to_long_ex(val);
parser->toffset = Z_LVAL_P(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;