diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-08-24 20:42:29 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-02 11:11:38 +0200 |
commit | 3e800e997bddc29cd28924c44846f7d2133a8933 (patch) | |
tree | e650686b950164531a16af82642dd52b826fb1d3 /ext/xml/xml.c | |
parent | ddc2a2d381843e086fc36388981d0b8ba1ea789d (diff) | |
download | php-git-3e800e997bddc29cd28924c44846f7d2133a8933.tar.gz |
Move custom type checks to ZPP
Closes GH-6034
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r-- | ext/xml/xml.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |