mirror of
https://github.com/php/php-src.git
synced 2026-03-31 12:42:29 +02:00
fix crash when .phpdbginit quits
This commit is contained in:
8
phpdbg.c
8
phpdbg.c
@@ -494,7 +494,13 @@ phpdbg_main:
|
||||
} zend_end_try();
|
||||
|
||||
/* initialize from file */
|
||||
phpdbg_init(init_file, init_file_len, init_file_default TSRMLS_CC);
|
||||
zend_try {
|
||||
phpdbg_init(init_file, init_file_len, init_file_default TSRMLS_CC);
|
||||
} zend_catch {
|
||||
if (PHPDBG_G(flags) & PHPDBG_IS_QUITTING) {
|
||||
goto phpdbg_out;
|
||||
}
|
||||
} zend_end_try();
|
||||
|
||||
/* print blurb */
|
||||
phpdbg_welcome(cleaning TSRMLS_CC);
|
||||
|
||||
Reference in New Issue
Block a user