Commit:    20318c49606274c87005b89f5f3a52e484cd760e
Author:    Bob Weinand <bobw...@hotmail.com>         Sat, 21 Dec 2013 22:42:11 
+0100
Parents:   ef3e0119b8437c855049ee3a67b0317dce055669
Branches:  PHP-5.6

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=20318c49606274c87005b89f5f3a52e484cd760e

Log:
Added breaking upon fatal-ish error

Changed paths:
  M  phpdbg.c


Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 17193ed..4b75ce2 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -438,6 +438,35 @@ static void php_sapi_phpdbg_log_message(char *message 
TSRMLS_DC) /* {{{ */
        */
        if (phpdbg_booted) {
                phpdbg_error("%s", message);
+
+               switch (PG(last_error_type)) {
+                       case E_ERROR:
+                       case E_CORE_ERROR:
+                       case E_COMPILE_ERROR:
+                       case E_USER_ERROR:
+                       case E_PARSE:
+                       case E_RECOVERABLE_ERROR:
+                               if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL)) {
+                                       phpdbg_list_file(
+                                               
zend_get_executed_filename(TSRMLS_C),
+                                               3,
+                                               
zend_get_executed_lineno(TSRMLS_C)-1,
+                                               
zend_get_executed_lineno(TSRMLS_C)
+                                               TSRMLS_CC
+                                       );
+                               }
+
+                               do {
+                                       switch (phpdbg_interactive(TSRMLS_C)) {
+                                               case PHPDBG_LEAVE:
+                                               case PHPDBG_FINISH:
+                                               case PHPDBG_UNTIL:
+                                               case PHPDBG_NEXT:
+                                                       return;
+                                       }
+                               } while (!(PHPDBG_G(flags) & 
PHPDBG_IS_QUITTING));
+
+               }
        } else fprintf(stdout, "%s\n", message);
 }
 /* }}} */


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to