]> granicus.if.org Git - php/commitdiff
- Implemented "info error" command
authorFelipe Pena <felipensp@gmail.com>
Sun, 17 Nov 2013 19:00:59 +0000 (17:00 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 17 Nov 2013 19:00:59 +0000 (17:00 -0200)
phpdbg_info.c

index 057859a1ad985b02fc69d73ec99ce4f6fe9a5dff..b67d8fbbce12ecc9e1dc643b24b6f953e2d7d8f8 100644 (file)
@@ -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;
 } /* }}} */