File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 14
14
+----------------------------------------------------------------------+
15
15
| Authors: Felipe Pena <felipe@php.net> |
16
16
| Authors: Joe Watkins <joe.watkins@live.co.uk> |
17
+ | Authors: Bob Weinand <bwoebi@php.net> |
17
18
+----------------------------------------------------------------------+
18
19
*/
19
20
@@ -438,6 +439,35 @@ static void php_sapi_phpdbg_log_message(char *message TSRMLS_DC) /* {{{ */
438
439
*/
439
440
if (phpdbg_booted ) {
440
441
phpdbg_error ("%s" , message );
442
+
443
+ switch (PG (last_error_type )) {
444
+ case E_ERROR :
445
+ case E_CORE_ERROR :
446
+ case E_COMPILE_ERROR :
447
+ case E_USER_ERROR :
448
+ case E_PARSE :
449
+ case E_RECOVERABLE_ERROR :
450
+ if (!(PHPDBG_G (flags ) & PHPDBG_IN_EVAL )) {
451
+ phpdbg_list_file (
452
+ zend_get_executed_filename (TSRMLS_C ),
453
+ 3 ,
454
+ zend_get_executed_lineno (TSRMLS_C )- 1 ,
455
+ zend_get_executed_lineno (TSRMLS_C )
456
+ TSRMLS_CC
457
+ );
458
+ }
459
+
460
+ do {
461
+ switch (phpdbg_interactive (TSRMLS_C )) {
462
+ case PHPDBG_LEAVE :
463
+ case PHPDBG_FINISH :
464
+ case PHPDBG_UNTIL :
465
+ case PHPDBG_NEXT :
466
+ return ;
467
+ }
468
+ } while (!(PHPDBG_G (flags ) & PHPDBG_IS_QUITTING ));
469
+
470
+ }
441
471
} else fprintf (stdout , "%s\n" , message );
442
472
}
443
473
/* }}} */
Original file line number Diff line number Diff line change 14
14
+----------------------------------------------------------------------+
15
15
| Authors: Felipe Pena <felipe@php.net> |
16
16
| Authors: Joe Watkins <joe.watkins@live.co.uk> |
17
+ | Authors: Bob Weinand <bwoebi@php.net> |
17
18
+----------------------------------------------------------------------+
18
19
*/
19
20
You can’t perform that action at this time.
0 commit comments