Skip to content

Commit 39172d4

Browse files
committed
Merge branch 'PHP-5.6' into PHP-7.0
2 parents 078f674 + 52793c1 commit 39172d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/xml/tests/bug72714.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ parse(20);
2929
?>
3030
===DONE===
3131
--EXPECTF--
32-
Notice: xml_parser_set_option(): tagstart ignored in %s%ebug72714.php on line %d
32+
Notice: xml_parser_set_option(): tagstart ignored, because it is out of range in %s%ebug72714.php on line %d
3333
string(9) "NS1:TOTAL"
3434
string(0) ""
3535
===DONE===

ext/xml/xml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ZEND_GET_MODULE(xml)
7070
/* }}} */
7171

7272

73-
#define SKIP_TAGSTART(str) ((str) + (parser->toffset > strlen(str) ? strlen(str) : + parser->toffset))
73+
#define SKIP_TAGSTART(str) ((str) + (parser->toffset > strlen(str) ? strlen(str) : parser->toffset))
7474

7575

7676
/* {{{ function prototypes */
@@ -1610,7 +1610,7 @@ PHP_FUNCTION(xml_parser_set_option)
16101610
convert_to_long_ex(val);
16111611
parser->toffset = Z_LVAL_P(val);
16121612
if (parser->toffset < 0) {
1613-
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "tagstart ignored");
1613+
php_error_docref(NULL TSRMLS_CC, E_NOTICE, "tagstart ignored, because it is out of range");
16141614
parser->toffset = 0;
16151615
}
16161616
break;

0 commit comments

Comments
 (0)