com php-src: - Implemented "info error" command: phpdbg_info .c
| From: | Bob Weinand | Date: | Sun, 17 Nov 2013 19:00:59 +0000 |
| Subject: | com php-src: - Implemented "info error" command: phpdbg_info .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74880@lists.php.net to get a copy of this message | ||
Commit: 66588d7ff747e6a321eb95267f3f7ba82bd89a2e
Author: Felipe Pena <felipensp@gmail.com> Sun, 17 Nov 2013 17:00:59 -0200
Parents: 2c9dbc6b62e8597379bb8928654dc9f687b8bd2a
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=66588d7ff747e6a321eb95267f3f7ba82bd89a2e
Log:
- Implemented "info error" command
Changed paths:
M phpdbg_info.c
Diff:
diff --git a/phpdbg_info.c b/phpdbg_info.c
index 057859a..b67d8fb 100644
--- a/phpdbg_info.c
+++ b/phpdbg_info.c
@@ -41,6 +41,12 @@ PHPDBG_INFO(files) /* {{{ */
PHPDBG_INFO(error) /* {{{ */
{
+ if (PG(last_error_message)) {
+ phpdbg_writeln("Last error: %s at %s line %d",
+ PG(last_error_message), PG(last_error_file), PG(last_error_lineno));
+ } else {
+ phpdbg_notice("No error found!");
+ }
return SUCCESS;
} /* }}} */