From 97887e37168c73fb028a4b58bf59010e6217ef7b Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sat, 21 Mar 2015 20:36:30 +0100 Subject: Stabilize (simple) watchpoints with IS_INDIRECT/IS_REFERENCE situations --- sapi/phpdbg/phpdbg_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg_utils.c') 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; -- cgit v1.2.1