Skip to content

Commit

Permalink
Explicitly initialize object variables passed to Z_PARAM_OBJ_OF_CLASS…
Browse files Browse the repository at this point in the history
…_OR_LONG_OR_NULL (php#13146)

In order to avoid possible miscompilations like php#13082
  • Loading branch information
kocsismate authored Jan 14, 2024
1 parent 0b7587f commit b5a23d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/intl/dateformat/dateformat_attrcpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b5a23d8

Please sign in to comment.