mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
display uncaught exceptions
This commit is contained in:
parent
5cc88ca88a
commit
57b67d71b0
2 changed files with 12 additions and 4 deletions
|
@ -440,6 +440,15 @@ static PHPDBG_COMMAND(run) /* {{{ */
|
|||
}
|
||||
} zend_end_try();
|
||||
|
||||
if (EG(exception)) {
|
||||
phpdbg_error("Uncaught Exception !");
|
||||
/*
|
||||
* @TODO(anyone) something better !!
|
||||
*/
|
||||
zend_print_zval_r(
|
||||
EG(exception), 0 TSRMLS_CC);
|
||||
}
|
||||
|
||||
EG(active_op_array) = orig_op_array;
|
||||
EG(opline_ptr) = orig_opline;
|
||||
EG(return_value_ptr_ptr) = orig_retval_ptr;
|
||||
|
|
1
test.php
1
test.php
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
if (isset($include))
|
||||
include (sprintf("%s/web-bootstrap.php", dirname(__FILE__)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue