Skip to content

Commit 6a5b3f0

Browse files
committed
The userland constants do not start with PHP_
1 parent b09be29 commit 6a5b3f0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/xml/tests/xml_parser_get_option_variation4.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ try {
1515

1616
?>
1717
--EXPECT--
18-
xml_parser_get_option(): Argument #2 ($option) must be a PHP_XML_OPTION_* constant
18+
xml_parser_get_option(): Argument #2 ($option) must be a XML_OPTION_* constant

ext/xml/tests/xml_parser_set_option_variation5.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ try {
1515

1616
?>
1717
--EXPECT--
18-
xml_parser_set_option(): Argument #2 ($option) must be a PHP_XML_OPTION_* constant
18+
xml_parser_set_option(): Argument #2 ($option) must be a XML_OPTION_* constant

ext/xml/xml.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ PHP_FUNCTION(xml_parser_set_option)
14571457
break;
14581458
}
14591459
default:
1460-
zend_argument_value_error(2, "must be a PHP_XML_OPTION_* constant");
1460+
zend_argument_value_error(2, "must be a XML_OPTION_* constant");
14611461
RETURN_THROWS();
14621462
break;
14631463
}
@@ -1491,7 +1491,7 @@ PHP_FUNCTION(xml_parser_get_option)
14911491
RETURN_STRING((char *)parser->target_encoding);
14921492
break;
14931493
default:
1494-
zend_argument_value_error(2, "must be a PHP_XML_OPTION_* constant");
1494+
zend_argument_value_error(2, "must be a XML_OPTION_* constant");
14951495
RETURN_THROWS();
14961496
}
14971497
}

0 commit comments

Comments
 (0)