From 5b8981f12eae17aa965f6c14bf99d28ee934f3bc Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Fri, 18 Sep 2015 00:50:08 +0200 Subject: Add eventual escaping for phpdbg arguments --- sapi/phpdbg/phpdbg_cmd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sapi/phpdbg/phpdbg_cmd.c') diff --git a/sapi/phpdbg/phpdbg_cmd.c b/sapi/phpdbg/phpdbg_cmd.c index d2dc89b09c..d71ac4181c 100644 --- a/sapi/phpdbg/phpdbg_cmd.c +++ b/sapi/phpdbg/phpdbg_cmd.c @@ -729,8 +729,9 @@ PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, zend_bool allow_async do { if (top->type == STACK_PARAM) { - if (phpdbg_internal_stack_execute(top, allow_async_unsafe) == FAILURE) { - return FAILURE; + int result; + if ((result = phpdbg_internal_stack_execute(top, allow_async_unsafe)) != SUCCESS) { + return result; } } } while ((top = top->next)); -- cgit v1.2.1