diff options
author | Nikita Popov <nikic@php.net> | 2015-03-17 22:58:37 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-03-17 22:59:11 +0100 |
commit | e39db5773d9443e2cfee92bc31651848c044c325 (patch) | |
tree | 056aaad959ded6b9f5db88a937e804a4b8055be4 /sapi/phpdbg/phpdbg_prompt.c | |
parent | 87cec4ccc90ce46c94d801c75b62aa25fa18025e (diff) | |
download | php-git-e39db5773d9443e2cfee92bc31651848c044c325.tar.gz |
Fix phpdbg
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index dec11f280b..9218c4a815 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -444,6 +444,10 @@ int phpdbg_compile(void) /* {{{ */ if (php_stream_open_for_zend_ex(PHPDBG_G(exec), &fh, USE_PATH|STREAM_OPEN_FOR_INCLUDE) == SUCCESS) { PHPDBG_G(ops) = zend_compile_file(&fh, ZEND_INCLUDE); zend_destroy_file_handle(&fh); + if (EG(exception)) { + zend_exception_error(EG(exception), E_ERROR); + zend_bailout(); + } phpdbg_notice("compile", "context=\"%s\"", "Successful compilation of %s", PHPDBG_G(exec)); |