summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_bp.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-07-18 23:55:59 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-07-20 18:00:42 +0200
commit1f9bba68a9d9fadbecf740404fe293f494b66516 (patch)
treeeb49866ba72b9363aeda55d2ae4104fd23d799f8 /sapi/phpdbg/phpdbg_bp.c
parente3cd0709dbc7aecdc9dbc2747942f76df4ca76b5 (diff)
downloadphp-git-1f9bba68a9d9fadbecf740404fe293f494b66516.tar.gz
Make opcode breakpoints work again
Diffstat (limited to 'sapi/phpdbg/phpdbg_bp.c')
-rw-r--r--sapi/phpdbg/phpdbg_bp.c4
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;
}