diff --git a/src/debugger/handler_dbgp.c b/src/debugger/handler_dbgp.c index 83b1ff65b..2f984e083 100644 --- a/src/debugger/handler_dbgp.c +++ b/src/debugger/handler_dbgp.c @@ -3022,7 +3022,7 @@ int xdebug_dbgp_register_eval_id(xdebug_con *context, function_stack_entry *fse) context->eval_id_sequence++; - ei = xdcalloc(sizeof(xdebug_eval_info), 1); + ei = xdcalloc(1, sizeof(xdebug_eval_info)); ei->id = context->eval_id_sequence; ei->contents = zend_string_copy(fse->function.include_filename); ei->refcount = 2; diff --git a/src/lib/compat.h b/src/lib/compat.h index 4487242e5..2b7eaa5dd 100644 --- a/src/lib/compat.h +++ b/src/lib/compat.h @@ -47,7 +47,7 @@ zend_bool xdebug_zend_hash_apply_protection_end(HashTable* ht); #endif # define XDEBUG_MAKE_STD_ZVAL(zv) \ - zv = ecalloc(sizeof(zval), 1); + zv = ecalloc(1, sizeof(zval)); # define HASH_KEY_SIZEOF(k) (sizeof(k) - 1) # define HASH_KEY_STRLEN(k) (strlen(k))