mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix UConvert::getErrorMessage() leak on zpp failure
This commit is contained in:
parent
ae81549048
commit
4ce9571978
1 changed files with 1 additions and 1 deletions
|
@ -797,12 +797,12 @@ PHP_METHOD(UConverter, getErrorCode) {
|
|||
/* {{{ */
|
||||
PHP_METHOD(UConverter, getErrorMessage) {
|
||||
php_converter_object *objval = CONV_GET(ZEND_THIS);
|
||||
zend_string *message = intl_error_get_message(&(objval->error));
|
||||
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
zend_string *message = intl_error_get_message(&(objval->error));
|
||||
if (message) {
|
||||
RETURN_STR(message);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue