From: Dmitry Stogov Date: Thu, 5 Jul 2018 09:20:50 +0000 (+0300) Subject: Don't keep dangling pointer to function_name X-Git-Tag: php-7.3.0alpha4~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d235517a36ea99c7fc1116e0dc90cba3c21a1f7;p=php Don't keep dangling pointer to function_name --- diff --git a/ext/intl/converter/converter.c b/ext/intl/converter/converter.c index 079f69e993..95b0e6592c 100644 --- a/ext/intl/converter/converter.c +++ b/ext/intl/converter/converter.c @@ -542,7 +542,8 @@ static void php_converter_resolve_callback(zval *zobj, if (zend_fcall_info_init(&caller, 0, finfo, fcache, NULL, &errstr) == FAILURE) { php_converter_throw_failure(objval, U_INTERNAL_PROGRAM_ERROR, "Error setting converter callback: %s", errstr); } - zval_dtor(&caller); + zend_array_destroy(Z_ARR(caller)); + ZVAL_UNDEF(&finfo->function_name); if (errstr) { efree(errstr); }