break;
case ADDR_PARAM:
- asprintf(pointer, "%#llx", param->addr);
+ asprintf(pointer, ZEND_ULONG_FMT, param->addr);
break;
case NUMERIC_PARAM:
break;
case ADDR_PARAM:
- fprintf(stderr, "%s ADDR_PARAM(%llu)\n", msg, param->addr);
+ fprintf(stderr, "%s ADDR_PARAM(" ZEND_ULONG_FMT ")\n", msg, param->addr);
break;
case NUMERIC_FILE_PARAM:
zend_hash_index_update_mem(vars, (zend_ulong) ops->vars - op->var, &id, sizeof(zend_ulong));
}
}
- asprintf(&decode, "@%llu", id);
+ asprintf(&decode, "@" ZEND_ULONG_FMT, id);
} break;
case IS_CONST:
case ZEND_JMPZNZ:
decode[1] = phpdbg_decode_op(ops, &op->op1, op->op1_type, vars);
- asprintf(&decode[2], "J%u or J%llu", op->op2.opline_num, op->extended_value);
+ asprintf(&decode[2], "J%u or J%" PRIu32, op->op2.opline_num, op->extended_value);
goto result;
case ZEND_JMPZ:
if (strkey) {
str_len = asprintf(&str, "%.*s%s%s%s", (int) watch->str_len, watch->str, (watch->flags & PHPDBG_WATCH_ARRAY) ? "[" : "->", phpdbg_get_property_key(strkey->val), (watch->flags & PHPDBG_WATCH_ARRAY) ? "]" : "");
} else {
- str_len = asprintf(&str, "%.*s%s%lli%s", (int) watch->str_len, watch->str, (watch->flags & PHPDBG_WATCH_ARRAY) ? "[" : "->", numkey, (watch->flags & PHPDBG_WATCH_ARRAY) ? "]" : "");
+ str_len = asprintf(&str, "%.*s%s" ZEND_LONG_FMT "%s", (int) watch->str_len, watch->str, (watch->flags & PHPDBG_WATCH_ARRAY) ? "[" : "->", numkey, (watch->flags & PHPDBG_WATCH_ARRAY) ? "]" : "");
}
if ((watchpoint = zend_hash_str_find_ptr(&PHPDBG_G(watchpoints), str, str_len))) {