Don't explicitly set return value on ZPP failure in ext/xml

Failing ZPP throws as of PHP 8.0.0, so explicitly setting a return
value is useless, and also slightly confusing.
This commit is contained in:
Christoph M. Becker 2019-09-03 13:11:08 +02:00
parent 7e8b3dd542
commit 37713c80e4

View file

@ -1065,7 +1065,7 @@ static void php_xml_parser_create_impl(INTERNAL_FUNCTION_PARAMETERS, int ns_supp
XML_Char *encoding;
if (zend_parse_parameters(ZEND_NUM_ARGS(), (ns_support ? "|ss": "|s"), &encoding_param, &encoding_param_len, &ns_param, &ns_param_len) == FAILURE) {
RETURN_FALSE;
return;
}
if (encoding_param != NULL) {