Enable backwards reading in list command

This commit is contained in:
Bob Weinand 2013-11-25 20:33:52 +01:00
parent 6932eb76e3
commit 2be5a1e3da
3 changed files with 8 additions and 3 deletions

View file

@ -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);