summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_utils.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-03-21 20:36:30 +0100
committerBob Weinand <bobwei9@hotmail.com>2015-03-21 23:16:53 +0100
commit97887e37168c73fb028a4b58bf59010e6217ef7b (patch)
tree158498e3006c60205f350fdb34b82947629dc6c5 /sapi/phpdbg/phpdbg_utils.c
parentf01071f55f0128a920c9625f88ef4ffe35922298 (diff)
downloadphp-git-97887e37168c73fb028a4b58bf59010e6217ef7b.tar.gz
Stabilize (simple) watchpoints with IS_INDIRECT/IS_REFERENCE situations
Diffstat (limited to 'sapi/phpdbg/phpdbg_utils.c')
-rw-r--r--sapi/phpdbg/phpdbg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_utils.c b/sapi/phpdbg/phpdbg_utils.c
index 8f1d46aac0..7a7b70ceaf 100644
--- a/sapi/phpdbg/phpdbg_utils.c
+++ b/sapi/phpdbg/phpdbg_utils.c
@@ -502,7 +502,7 @@ PHPDBG_API int phpdbg_parse_variable_with_arg(char *input, size_t len, HashTable
} else if (Z_TYPE_P(zv) == IS_ARRAY) {
parent = Z_ARRVAL_P(zv);
} else {
- phpdbg_error("variable", "type=\"notiterable\" variable=\"%.*s\"", "%.*s is nor an array nor an object", (int) i, input);
+ phpdbg_error("variable", "type=\"notiterable\" variable=\"%.*s\"", "%.*s is nor an array nor an object", (int) (input[i] == '>' ? i - 1 : i), input);
return FAILURE;
}
index_len = 0;