diff --git a/ext/xml/tests/xml_parser_get_option_variation4.phpt b/ext/xml/tests/xml_parser_get_option_variation4.phpt index 9c12f57544b..f6d858a7e9c 100644 --- a/ext/xml/tests/xml_parser_get_option_variation4.phpt +++ b/ext/xml/tests/xml_parser_get_option_variation4.phpt @@ -15,4 +15,4 @@ try { ?> --EXPECT-- -xml_parser_get_option(): Argument #2 ($option) must be a PHP_XML_OPTION_* constant +xml_parser_get_option(): Argument #2 ($option) must be a XML_OPTION_* constant diff --git a/ext/xml/tests/xml_parser_set_option_variation5.phpt b/ext/xml/tests/xml_parser_set_option_variation5.phpt index 382803ca1c7..c6bad153970 100644 --- a/ext/xml/tests/xml_parser_set_option_variation5.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation5.phpt @@ -15,4 +15,4 @@ try { ?> --EXPECT-- -xml_parser_set_option(): Argument #2 ($option) must be a PHP_XML_OPTION_* constant +xml_parser_set_option(): Argument #2 ($option) must be a XML_OPTION_* constant diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 904ad305b17..b641a0c87d7 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -1457,7 +1457,7 @@ PHP_FUNCTION(xml_parser_set_option) break; } default: - zend_argument_value_error(2, "must be a PHP_XML_OPTION_* constant"); + zend_argument_value_error(2, "must be a XML_OPTION_* constant"); RETURN_THROWS(); break; } @@ -1491,7 +1491,7 @@ PHP_FUNCTION(xml_parser_get_option) RETURN_STRING((char *)parser->target_encoding); break; default: - zend_argument_value_error(2, "must be a PHP_XML_OPTION_* constant"); + zend_argument_value_error(2, "must be a XML_OPTION_* constant"); RETURN_THROWS(); } }