From: Bob Weinand Date: Sun, 20 Apr 2014 10:54:50 +0000 (+0200) Subject: Added error on compile failure in exec cmd X-Git-Tag: php-5.6.0beta2~1^2~37^2~3^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=508c379428f2d1bc14321fdada9170bb15b8776e;p=php Added error on compile failure in exec cmd --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index c3971ccef4..c6297c0207 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -375,7 +375,10 @@ PHPDBG_COMMAND(exec) /* {{{ */ php_hash_environment(TSRMLS_C); phpdbg_notice("Set execution context: %s", PHPDBG_G(exec)); - phpdbg_compile(TSRMLS_C); + + if (phpdbg_compile(TSRMLS_C) == FAILURE) { + phpdbg_error("Failed to compile %s", PHPDBG_G(exec)); + } } else { phpdbg_notice("Execution context not changed"); }