summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_prompt.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-03-17 22:58:37 +0100
committerNikita Popov <nikic@php.net>2015-03-17 22:59:11 +0100
commite39db5773d9443e2cfee92bc31651848c044c325 (patch)
tree056aaad959ded6b9f5db88a937e804a4b8055be4 /sapi/phpdbg/phpdbg_prompt.c
parent87cec4ccc90ce46c94d801c75b62aa25fa18025e (diff)
downloadphp-git-e39db5773d9443e2cfee92bc31651848c044c325.tar.gz
Fix phpdbg
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r--sapi/phpdbg/phpdbg_prompt.c4
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));