mirror of
https://github.com/php/php-src.git
synced 2025-01-06 10:53:39 +08:00
Oplines run from 0 to op_array->last - 1
See also in issue 76
This commit is contained in:
parent
8da9b7e3a2
commit
366bf38b4f
@ -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_API int phpdbg_resolve_op_array_break(phpdbg_breakopline_t *brake, zend_op_array *op_array TSRMLS_DC) /* {{{ */
|
||||||
{
|
{
|
||||||
phpdbg_breakline_t opline_break;
|
phpdbg_breakline_t opline_break;
|
||||||
if (op_array->last < brake->opline_num) {
|
if (op_array->last <= brake->opline_num) {
|
||||||
if (brake->class_name == NULL) {
|
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);
|
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) {
|
} else if (brake->func_name == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user