]> granicus.if.org Git - php/commitdiff
Added error on compile failure in exec cmd
authorBob Weinand <bobwei9@hotmail.com>
Sun, 20 Apr 2014 10:54:50 +0000 (12:54 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Sun, 20 Apr 2014 10:54:50 +0000 (12:54 +0200)
phpdbg_prompt.c

index c3971ccef4b7df3ecbcfd72d7e05a2046490620a..c6297c020739f91871ae229a7aef836f328fc881 100644 (file)
@@ -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");
                        }