use correct param types

This commit is contained in:
krakjoe 2014-02-18 08:39:38 +00:00
parent d980101803
commit cadc909bb7
3 changed files with 6 additions and 7 deletions

View File

@ -191,11 +191,11 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
switch (command->type) { switch (command->type) {
case EVAL_PARAM: case EVAL_PARAM:
phpdbg_notice("eval (%s)", command->str); PHPDBG_COMMAND_HANDLER(eval)(command, NULL TSRMLS_CC);
break; break;
case SHELL_PARAM: case SHELL_PARAM:
phpdbg_notice("shell (%s)", command->str); PHPDBG_COMMAND_HANDLER(shell)(command, NULL TSRMLS_CC);
break; break;
case STR_PARAM: { case STR_PARAM: {
@ -228,7 +228,6 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
return SUCCESS; return SUCCESS;
} }
%} %}
%code requires { %code requires {

View File

@ -259,11 +259,11 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
switch (command->type) { switch (command->type) {
case EVAL_PARAM: case EVAL_PARAM:
phpdbg_notice("eval (%s)", command->str); PHPDBG_COMMAND_HANDLER(eval)(command, NULL TSRMLS_CC);
break; break;
case SHELL_PARAM: case SHELL_PARAM:
phpdbg_notice("shell (%s)", command->str); PHPDBG_COMMAND_HANDLER(shell)(command, NULL TSRMLS_CC);
break; break;
case STR_PARAM: { case STR_PARAM: {

View File

@ -617,7 +617,7 @@ out:
PHPDBG_COMMAND(eval) /* {{{ */ PHPDBG_COMMAND(eval) /* {{{ */
{ {
switch (param->type) { switch (param->type) {
case STR_PARAM: { case EVAL_PARAM: {
zend_bool stepping = ((PHPDBG_G(flags) & PHPDBG_IS_STEPPING)==PHPDBG_IS_STEPPING); zend_bool stepping = ((PHPDBG_G(flags) & PHPDBG_IS_STEPPING)==PHPDBG_IS_STEPPING);
zval retval; zval retval;
@ -780,7 +780,7 @@ PHPDBG_COMMAND(shell) /* {{{ */
{ {
/* don't allow this to loop, ever ... */ /* don't allow this to loop, ever ... */
switch (param->type) { switch (param->type) {
case STR_PARAM: { case SHELL_PARAM: {
FILE *fd = NULL; FILE *fd = NULL;
if ((fd=VCWD_POPEN((char*)param->str, "w"))) { if ((fd=VCWD_POPEN((char*)param->str, "w"))) {
/* do something perhaps ?? do we want input ?? */ /* do something perhaps ?? do we want input ?? */