From 0361801b07c28ebdd16bacf80e2f4ef330b67f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sun, 14 Jan 2024 08:41:44 +0100 Subject: [PATCH] Explicitly initialize object variables passed to Z_PARAM_OBJ_OF_CLASS_OR_LONG --- 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 e34c331800622..1fb5b514bc6a3 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;