From: Felipe Pena Date: Sun, 17 Nov 2013 19:00:59 +0000 (-0200) Subject: - Implemented "info error" command X-Git-Tag: php-5.6.0alpha1~110^2~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66588d7ff747e6a321eb95267f3f7ba82bd89a2e;p=php - Implemented "info error" command --- 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; } /* }}} */