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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user