diff options
author | krakjoe <joe.watkins@live.co.uk> | 2013-12-23 21:52:32 +0000 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2013-12-23 21:52:32 +0000 |
commit | 2d82e994b637f511fa160d5635318a61f0c06421 (patch) | |
tree | 12afec1fcd25f3c2989e2353ada7ce1b67b91d34 /phpdbg.c | |
parent | d82e7ee7f85de1173152df860a2356fb38660339 (diff) | |
parent | 20318c49606274c87005b89f5f3a52e484cd760e (diff) | |
download | php-git-2d82e994b637f511fa160d5635318a61f0c06421.tar.gz |
Merge branch 'master' of https://github.com/krakjoe/phpdbg
Diffstat (limited to 'phpdbg.c')
-rw-r--r-- | phpdbg.c | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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); } /* }}} */ |