1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00

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
+2 -3
View File
@@ -191,11 +191,11 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
switch (command->type) {
case EVAL_PARAM:
phpdbg_notice("eval (%s)", command->str);
PHPDBG_COMMAND_HANDLER(eval)(command, NULL TSRMLS_CC);
break;
case SHELL_PARAM:
phpdbg_notice("shell (%s)", command->str);
PHPDBG_COMMAND_HANDLER(shell)(command, NULL TSRMLS_CC);
break;
case STR_PARAM: {
@@ -228,7 +228,6 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
return SUCCESS;
}
%}
%code requires {
+2 -2
View File
@@ -259,11 +259,11 @@ int phpdbg_stack_execute(phpdbg_param_t *stack, char **why) {
switch (command->type) {
case EVAL_PARAM:
phpdbg_notice("eval (%s)", command->str);
PHPDBG_COMMAND_HANDLER(eval)(command, NULL TSRMLS_CC);
break;
case SHELL_PARAM:
phpdbg_notice("shell (%s)", command->str);
PHPDBG_COMMAND_HANDLER(shell)(command, NULL TSRMLS_CC);
break;
case STR_PARAM: {
+2 -2
View File
@@ -617,7 +617,7 @@ out:
PHPDBG_COMMAND(eval) /* {{{ */
{
switch (param->type) {
case STR_PARAM: {
case EVAL_PARAM: {
zend_bool stepping = ((PHPDBG_G(flags) & PHPDBG_IS_STEPPING)==PHPDBG_IS_STEPPING);
zval retval;
@@ -780,7 +780,7 @@ PHPDBG_COMMAND(shell) /* {{{ */
{
/* don't allow this to loop, ever ... */
switch (param->type) {
case STR_PARAM: {
case SHELL_PARAM: {
FILE *fd = NULL;
if ((fd=VCWD_POPEN((char*)param->str, "w"))) {
/* do something perhaps ?? do we want input ?? */