mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
Release temporary string reference
This commit is contained in:
parent
04fb3f28ff
commit
24030d54d8
@ -216,7 +216,9 @@ U_CFUNC PHP_METHOD( IntlDateFormatter, __construct )
|
||||
return_value = getThis();
|
||||
if (datefmt_ctor(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1) == FAILURE) {
|
||||
if (!EG(exception)) {
|
||||
zend_throw_exception(IntlException_ce_ptr, ZSTR_VAL(intl_error_get_message(NULL)), intl_error_get_code(NULL));
|
||||
zend_string *err = intl_error_get_message(NULL);
|
||||
zend_throw_exception(IntlException_ce_ptr, ZSTR_VAL(err), intl_error_get_code(NULL));
|
||||
zend_string_release(err);
|
||||
}
|
||||
}
|
||||
zend_restore_error_handling(&error_handling);
|
||||
|
Loading…
Reference in New Issue
Block a user