com php-src: Print should be in *current* context (stack): sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt. c

From: Date: Sat, 25 Apr 2015 17:15:08 +0000
Subject: com php-src: Print should be in *current* context (stack): sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt. c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86484@lists.php.net to get a copy of this message
Commit: 49bd5eaabf86710d0abdd8747aec5ecea1ad5ed2 Author: Bob Weinand <bobwei9@hotmail.com> Sat, 25 Apr 2015 19:15:08 +0200 Parents: a9a6799964c76dee70b19430d51d466097198783 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=49bd5eaabf86710d0abdd8747aec5ecea1ad5ed2 Log: Print should be in *current* context (stack) Changed paths: M sapi/phpdbg/phpdbg_print.c M sapi/phpdbg/phpdbg_prompt.c Diff: diff --git a/sapi/phpdbg/phpdbg_print..c b/sapi/phpdbg/phpdbg_print.c index 101120b..11bfdf5 100644 --- a/sapi/phpdbg/phpdbg_print.c +++ b/sapi/phpdbg/phpdbg_print.c @@ -30,12 +30,12 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg); PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[8], flags) const phpdbg_command_t phpdbg_print_commands[] = { - PHPDBG_PRINT_COMMAND_D(exec, "print out the instructions in the execution context", 'e', print_exec, NULL, 0, PHPDBG_ASYNC_SAFE), - PHPDBG_PRINT_COMMAND_D(opline, "print out the instruction in the current opline", 'o', print_opline, NULL, 0, PHPDBG_ASYNC_SAFE), - PHPDBG_PRINT_COMMAND_D(class, "print out the instructions in the specified class", 'c', print_class, NULL, "s", PHPDBG_ASYNC_SAFE), - PHPDBG_PRINT_COMMAND_D(method, "print out the instructions in the specified method", 'm', print_method, NULL, "m", PHPDBG_ASYNC_SAFE), - PHPDBG_PRINT_COMMAND_D(func, "print out the instructions in the specified function", 'f', print_func, NULL, "s", PHPDBG_ASYNC_SAFE), - PHPDBG_PRINT_COMMAND_D(stack, "print out the instructions in the current stack", 's', print_stack, NULL, 0, PHPDBG_ASYNC_SAFE), + PHPDBG_PRINT_COMMAND_D(exec, "print out the instructions in the main execution context", 'e', print_exec, NULL, 0, PHPDBG_ASYNC_SAFE), + PHPDBG_PRINT_COMMAND_D(opline, "print out the instruction in the current opline", 'o', print_opline, NULL, 0, PHPDBG_ASYNC_SAFE), + PHPDBG_PRINT_COMMAND_D(class, "print out the instructions in the specified class", 'c', print_class, NULL, "s", PHPDBG_ASYNC_SAFE), + PHPDBG_PRINT_COMMAND_D(method, "print out the instructions in the specified method", 'm', print_method, NULL, "m", PHPDBG_ASYNC_SAFE), + PHPDBG_PRINT_COMMAND_D(func, "print out the instructions in the specified function", 'f', print_func, NULL, "s", PHPDBG_ASYNC_SAFE), + PHPDBG_PRINT_COMMAND_D(stack, "print out the instructions in the current stack", 's', print_stack, NULL, 0, PHPDBG_ASYNC_SAFE), PHPDBG_END_COMMAND }; diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 621fc1e..173c3f6 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -821,7 +821,7 @@ PHPDBG_COMMAND(back) /* {{{ */ PHPDBG_COMMAND(print) /* {{{ */ { if (!param || param->type == EMPTY_PARAM) { - return phpdbg_do_print_exec(param); + return phpdbg_do_print_stack(param); } else switch (param->type) { case STR_PARAM: return phpdbg_do_print_func(param);

« previous php.cvs (#86484) next »