summaryrefslogtreecommitdiff
path: root/phpdbg_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg_utils.c')
-rw-r--r--phpdbg_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpdbg_utils.c b/phpdbg_utils.c
index 2c73f9b55b..5a922e8e53 100644
--- a/phpdbg_utils.c
+++ b/phpdbg_utils.c
@@ -69,7 +69,7 @@ PHPDBG_API int phpdbg_is_numeric(const char *str) /* {{{ */
return 0;
for (; *str; str++) {
- if (isspace(*str)) {
+ if (isspace(*str) || *str == '-') {
continue;
}
return isdigit(*str);