mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
The userland constants do not start with PHP_
This commit is contained in:
parent
b09be29ac1
commit
6a5b3f0ff9
3 changed files with 4 additions and 4 deletions
|
@ -15,4 +15,4 @@ try {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--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
|
||||||
|
|
|
@ -15,4 +15,4 @@ try {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
--EXPECT--
|
--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
|
||||||
|
|
|
@ -1457,7 +1457,7 @@ PHP_FUNCTION(xml_parser_set_option)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
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();
|
RETURN_THROWS();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1491,7 +1491,7 @@ PHP_FUNCTION(xml_parser_get_option)
|
||||||
RETURN_STRING((char *)parser->target_encoding);
|
RETURN_STRING((char *)parser->target_encoding);
|
||||||
break;
|
break;
|
||||||
default:
|
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();
|
RETURN_THROWS();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue