From 66588d7ff747e6a321eb95267f3f7ba82bd89a2e Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 17 Nov 2013 17:00:59 -0200 Subject: [PATCH] - Implemented "info error" command --- phpdbg_info.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpdbg_info.c b/phpdbg_info.c index 057859a1ad..b67d8fbbce 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; } /* }}} */ -- 2.50.1