From 3e800e997bddc29cd28924c44846f7d2133a8933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Mon, 24 Aug 2020 20:42:29 +0200 Subject: Move custom type checks to ZPP Closes GH-6034 --- ext/xml/xml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/xml/xml.c') diff --git a/ext/xml/xml.c b/ext/xml/xml.c index c670c2ef52..00f8798ad0 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -1427,7 +1427,7 @@ PHP_FUNCTION(xml_parser_set_option) case PHP_XML_OPTION_SKIP_TAGSTART: parser->toffset = zval_get_long(val); if (parser->toffset < 0) { - php_error_docref(NULL, E_NOTICE, "tagstart ignored, because it is out of range"); + php_error_docref(NULL, E_WARNING, "tagstart ignored, because it is out of range"); parser->toffset = 0; } break; @@ -1445,6 +1445,7 @@ PHP_FUNCTION(xml_parser_set_option) zend_argument_value_error(3, "is not a supported target encoding"); RETURN_THROWS(); } + parser->target_encoding = enc->name; break; } -- cgit v1.2.1