diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-10-16 12:34:10 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-10-16 12:34:10 +0200 |
commit | 601ab6e9d0cdd52a7b86819ae2e604936e83f648 (patch) | |
tree | 6005927b6e51da13fd71742e44cb5002f0040875 /sapi/phpdbg/phpdbg_utils.c | |
parent | 9f472ba5e32fb2aac725b65fefb9a992ae66caee (diff) | |
download | php-git-601ab6e9d0cdd52a7b86819ae2e604936e83f648.tar.gz |
Fix searching for catch blocks
Since PHP-7.1 catch blocks are addressed with relative byte difference between two catch blocks as opposed to absolute opcode number
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c index 331409990e..642c1dec63 100644 --- a/sapi/phpdbg/phpdbg_utils.c +++ b/sapi/phpdbg/phpdbg_utils.c @@ -772,7 +772,7 @@ PHPDBG_API zend_bool phpdbg_check_caught_ex(zend_execute_data *execute_data, zen return 1; } - catch = cur->extended_value; + catch += cur->extended_value / sizeof(zend_op); } while (!cur->result.num); return 0; |