diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-04-22 01:11:59 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-04-22 01:11:59 +0200 |
commit | 0ec3a6ff33e815f8d50d437fd00ba0f8b09bdf85 (patch) | |
tree | 908ea73412a498456dd8f900a4a018603421f190 /sapi/phpdbg/phpdbg_prompt.c | |
parent | e09a0bfc9e849b558fb03be33ac463ef3288305b (diff) | |
download | php-git-0ec3a6ff33e815f8d50d437fd00ba0f8b09bdf85.tar.gz |
FAST_RET opcode also returns
Diffstat (limited to 'sapi/phpdbg/phpdbg_prompt.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index e2978fb5c7..621fc1e318 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -486,6 +486,7 @@ int phpdbg_skip_line_helper() /* {{{ */ { while (++opline < op_array->opcodes + op_array->last) { if (opline->lineno != EG(current_execute_data)->opline->lineno || opline->opcode == ZEND_RETURN + || opline->opcode == ZEND_FAST_RET || opline->opcode == ZEND_GENERATOR_RETURN || opline->opcode == ZEND_EXIT || opline->opcode == ZEND_YIELD @@ -529,11 +530,12 @@ static void phpdbg_seek_to_end(void) /* {{{ */ { while (++opline < op_array->opcodes + op_array->last) { switch (opline->opcode) { case ZEND_RETURN: + case ZEND_FAST_RET: case ZEND_GENERATOR_RETURN: case ZEND_EXIT: case ZEND_YIELD: zend_hash_index_update_ptr(&PHPDBG_G(seek), (zend_ulong) opline, (void *) opline); - return; + return; } } } |