mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use RETURN_THROWS() after try_convert_to_string()
This commit is contained in:
parent
1658b5babc
commit
7b4a4d2ace
17 changed files with 30 additions and 30 deletions
|
@ -1514,7 +1514,7 @@ PHP_FUNCTION(xml_parser_set_option)
|
|||
case PHP_XML_OPTION_TARGET_ENCODING: {
|
||||
const xml_encoding *enc;
|
||||
if (!try_convert_to_string(val)) {
|
||||
return;
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
enc = xml_get_encoding((XML_Char*)Z_STRVAL_P(val));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue