From b5a23d88f5d59a8aec2b8cfe3b40429eff1c4215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sun, 14 Jan 2024 16:02:59 +0100 Subject: [PATCH] Explicitly initialize object variables passed to Z_PARAM_OBJ_OF_CLASS_OR_LONG_OR_NULL (#13146) In order to avoid possible miscompilations like #13082 --- ext/intl/dateformat/dateformat_attrcpp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/intl/dateformat/dateformat_attrcpp.cpp b/ext/intl/dateformat/dateformat_attrcpp.cpp index e34c3318006..1fb5b514bc6 100644 --- a/ext/intl/dateformat/dateformat_attrcpp.cpp +++ b/ext/intl/dateformat/dateformat_attrcpp.cpp @@ -158,8 +158,8 @@ U_CFUNC PHP_FUNCTION(datefmt_get_calendar_object) /* {{{ Set formatter's calendar. */ U_CFUNC PHP_FUNCTION(datefmt_set_calendar) { - zend_object *calendar_obj; - zend_long calendar_long; + zend_object *calendar_obj = NULL; + zend_long calendar_long = 0; bool calendar_is_null; DATE_FORMAT_METHOD_INIT_VARS;