diff --git a/sapi/phpdbg/phpdbg_info.c b/sapi/phpdbg/phpdbg_info.c index 306293993f32..afda62d93171 100644 --- a/sapi/phpdbg/phpdbg_info.c +++ b/sapi/phpdbg/phpdbg_info.c @@ -210,7 +210,7 @@ static int phpdbg_print_symbols(bool show_globals) { if (ops->function_name) { if (ops->scope) { - phpdbg_notice("Variables in %s::%s() (%d)", ops->scope->name->val, ops->function_name->val, zend_hash_num_elements(&vars)); + phpdbg_notice("Variables in %s::%s() (%d)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops->function_name), zend_hash_num_elements(&vars)); } else { phpdbg_notice("Variables in %s() (%d)", ZSTR_VAL(ops->function_name), zend_hash_num_elements(&vars)); } @@ -309,9 +309,9 @@ PHPDBG_INFO(literal) /* {{{ */ if (ops->function_name) { if (ops->scope) { - phpdbg_notice("Literal Constants in %s::%s() (%d)", ops->scope->name->val, ops->function_name->val, count); + phpdbg_notice("Literal Constants in %s::%s() (%d)", ZSTR_VAL(ops->scope->name), ZSTR_VAL(ops->function_name), count); } else { - phpdbg_notice("Literal Constants in %s() (%d)", ops->function_name->val, count); + phpdbg_notice("Literal Constants in %s() (%d)", ZSTR_VAL(ops->function_name), count); } } else { if (ops->filename) { diff --git a/sapi/phpdbg/phpdbg_print.c b/sapi/phpdbg/phpdbg_print.c index c931c73eebc6..09e0b59413fc 100644 --- a/sapi/phpdbg/phpdbg_print.c +++ b/sapi/phpdbg/phpdbg_print.c @@ -235,7 +235,7 @@ static void phpdbg_print_opcodes_method_ce(zend_class_entry *ce, const char *fun zend_function *func; if (ce->type != ZEND_USER_CLASS) { - phpdbg_out("function name: %s::%s (internal)\n", ce->name->val, function); + phpdbg_out("function name: %s::%s (internal)\n", ZSTR_VAL(ce->name), function); return; } diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index fe8502da47e9..2408da394568 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -1831,11 +1831,11 @@ void phpdbg_force_interruption(void) /* {{{ */ { phpdbg_notice("Current opline: %p (op #%u) in %s:%u", data->opline, (uint32_t) (data->opline - data->func->op_array.opcodes), - data->func->op_array.filename->val, + ZSTR_VAL(data->func->op_array.filename), data->opline->lineno); } else if (data->func->internal_function.function_name) { phpdbg_notice("Current opline: in internal function %s", - data->func->internal_function.function_name->val); + ZSTR_VAL(data->func->internal_function.function_name)); } else { phpdbg_notice("Current opline: executing internal code"); }