Skip to content

Commit 37713c8

Browse files
committed
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.
1 parent 7e8b3dd commit 37713c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/xml/xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ static void php_xml_parser_create_impl(INTERNAL_FUNCTION_PARAMETERS, int ns_supp
10651065
XML_Char *encoding;
10661066

10671067
if (zend_parse_parameters(ZEND_NUM_ARGS(), (ns_support ? "|ss": "|s"), &encoding_param, &encoding_param_len, &ns_param, &ns_param_len) == FAILURE) {
1068-
RETURN_FALSE;
1068+
return;
10691069
}
10701070

10711071
if (encoding_param != NULL) {

0 commit comments

Comments
 (0)