]> granicus.if.org Git - php/commitdiff
Name the tag <eval> if the error id during ev cmd
authorBob Weinand <bobwei9@hotmail.com>
Fri, 24 Oct 2014 12:16:49 +0000 (14:16 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Fri, 24 Oct 2014 12:16:49 +0000 (14:16 +0200)
phpdbg.c

index 88313585b56ddaaec73ac3076cc134a6c680fc5b..f09dc4ee13dac73a75d997a64bd85433df588a1e 100644 (file)
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -463,6 +463,11 @@ static void php_sapi_phpdbg_log_message(char *message TSRMLS_DC) /* {{{ */
        * We must not request TSRM before being boot
        */
        if (phpdbg_booted) {
+               if (PHPDBG_G(flags) & PHPDBG_IN_EVAL) {
+                       phpdbg_error("eval", "msg=\"%s\"", "%s", message);
+                       return;
+               }
+
                phpdbg_error("php", "msg=\"%s\"", "%s", message);
 
                switch (PG(last_error_type)) {