diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-08-23 11:58:32 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-08-23 11:58:45 +0100 |
commit | e9f21a33887e51a7f9c8f871d30425457b34f41f (patch) | |
tree | ada6a6be83f8c3b0c42518679f231773d8f06130 /sapi/phpdbg/phpdbg_bp.c | |
parent | 4df6f2644252de00d70577c00a120ff674fee029 (diff) | |
download | php-git-e9f21a33887e51a7f9c8f871d30425457b34f41f.tar.gz |
Fix phpdbg_break_next() and add test
Diffstat (limited to 'sapi/phpdbg/phpdbg_bp.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_bp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg_bp.c b/sapi/phpdbg/phpdbg_bp.c index 7e8292b066..c90623a03b 100644 --- a/sapi/phpdbg/phpdbg_bp.c +++ b/sapi/phpdbg/phpdbg_bp.c @@ -212,6 +212,8 @@ PHPDBG_API void phpdbg_export_breakpoints_to_string(char **str) /* {{{ */ phpdbg_asprintf(&new_str, "%sbreak if %s\n", str, conditional->code); } } break; + + default: continue; } if ((*str)[0]) { @@ -784,6 +786,7 @@ PHPDBG_API void phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline) /* { PHPDBG_BREAK_INIT(new_break, PHPDBG_BREAK_OPLINE); new_break.opline = (zend_ulong) opline; + new_break.base = NULL; zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], (zend_ulong) opline, &new_break, sizeof(phpdbg_breakline_t)); |