com php-src: Name the tag <eval> if the error id during ev cmd: phpdbg.c
| From: | Bob Weinand | Date: | Fri, 24 Oct 2014 12:16:49 +0000 |
| Subject: | com php-src: Name the tag <eval> if the error id during ev cmd: phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-82500@lists.php.net to get a copy of this message | ||
Commit: 9053b8a4d4a4ea0d59e2300f7a6b29b6cbcdcad5
Author: Bob Weinand <bobwei9@hotmail.com> Fri, 24 Oct 2014 14:16:49 +0200
Parents: b0089e3c2f649af08d27acf6762c4f4a166f9710
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9053b8a4d4a4ea0d59e2300f7a6b29b6cbcdcad5
Log:
Name the tag <eval> if the error id during ev cmd
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 8831358..f09dc4e 100644
--- 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)) {