mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Move custom type checks to ZPP
Closes GH-6034
This commit is contained in:
parent
ddc2a2d381
commit
3e800e997b
19 changed files with 117 additions and 122 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue