Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sapi/phpdbg/phpdbg_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion sapi/phpdbg/phpdbg_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions sapi/phpdbg/phpdbg_prompt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
Loading