diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-18 23:55:59 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-20 18:00:42 +0200 |
commit | 1f9bba68a9d9fadbecf740404fe293f494b66516 (patch) | |
tree | eb49866ba72b9363aeda55d2ae4104fd23d799f8 /sapi/phpdbg/phpdbg_bp.c | |
parent | e3cd0709dbc7aecdc9dbc2747942f76df4ca76b5 (diff) | |
download | php-git-1f9bba68a9d9fadbecf740404fe293f494b66516.tar.gz |
Make opcode breakpoints work again
Diffstat (limited to 'sapi/phpdbg/phpdbg_bp.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_bp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/phpdbg/phpdbg_bp.c b/sapi/phpdbg/phpdbg_bp.c index 48239ccac8..06c1e40b6f 100644 --- a/sapi/phpdbg/phpdbg_bp.c +++ b/sapi/phpdbg/phpdbg_bp.c @@ -928,9 +928,9 @@ static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_opline(phpdbg_opline_pt static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_opcode(zend_uchar opcode) /* {{{ */ { - const char *opname = phpdbg_decode_opcode(opcode); + const char *opname = zend_get_opcode_name(opcode); - if (memcmp(opname, PHPDBG_STRL("UNKNOWN")) == 0) { + if (!opname) { return NULL; } |