summaryrefslogtreecommitdiff
path: root/ext/xml/xml.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-08-20 12:46:08 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-08-20 12:46:08 +0200
commit39172d44d8cdb9caf76ae851e3bb8f21091564ea (patch)
tree577fd3adba62f5aebef9583d26dcec823c3b593c /ext/xml/xml.c
parent078f6742127c65cfbeeac4b5aa3290263367822c (diff)
parent52793c14d951b12f0eca806bb55a97011a322243 (diff)
downloadphp-git-39172d44d8cdb9caf76ae851e3bb8f21091564ea.tar.gz
Merge branch 'PHP-5.6' into PHP-7.0
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r--ext/xml/xml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c
index de10194998..43086934a5 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 */
@@ -1610,7 +1610,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;