mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
use correct param types
This commit is contained in:
parent
d980101803
commit
cadc909bb7
@ -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 {
|
||||||
|
@ -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: {
|
||||||
|
@ -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 ?? */
|
||||||
|
Loading…
Reference in New Issue
Block a user