1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Explicitly initialize object variables passed to Z_PARAM_OBJ_OF_CLASS_OR_LONG_OR_NULL (#13146)

In order to avoid possible miscompilations like #13082
This commit is contained in:
Máté Kocsis
2024-01-14 16:02:59 +01:00
committed by GitHub
parent 0b7587feae
commit b5a23d88f5

View File

@@ -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;