diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-02-19 01:13:03 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-02-19 01:13:03 +0100 |
commit | 366bf38b4f71e9aa51ee971b7a84a09fdff79680 (patch) | |
tree | 777630a800eab0be52a3d3f3dce026c5f300bc57 | |
parent | 8da9b7e3a2e25ff8cd536200d515cf0d9c01906f (diff) | |
download | php-git-366bf38b4f71e9aa51ee971b7a84a09fdff79680.tar.gz |
Oplines run from 0 to op_array->last - 1
See also in issue 76
-rw-r--r-- | phpdbg_bp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpdbg_bp.c b/phpdbg_bp.c index 609644548f..b495bc711f 100644 --- a/phpdbg_bp.c +++ b/phpdbg_bp.c @@ -355,7 +355,7 @@ PHPDBG_API void phpdbg_set_breakpoint_opline(zend_ulong opline TSRMLS_DC) /* {{{ PHPDBG_API int phpdbg_resolve_op_array_break(phpdbg_breakopline_t *brake, zend_op_array *op_array TSRMLS_DC) /* {{{ */ { phpdbg_breakline_t opline_break; - if (op_array->last < brake->opline_num) { + if (op_array->last <= brake->opline_num) { if (brake->class_name == NULL) { phpdbg_error("There are only %d oplines in function %s (breaking at opline %ld impossible)", op_array->last, brake->func_name, brake->opline_num); } else if (brake->func_name == NULL) { |