From: Bob Weinand Date: Fri, 17 Oct 2014 17:32:02 +0000 (+0200) Subject: Fix negative list offsets X-Git-Tag: php-5.6.3RC1~51^2~52^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afe01e4956f37090a52a5bebf25bf4c8b57da8c5;p=php Fix negative list offsets --- diff --git a/phpdbg_list.c b/phpdbg_list.c index 365c7a62e8..80b5d2b189 100644 --- a/phpdbg_list.c +++ b/phpdbg_list.c @@ -124,7 +124,7 @@ PHPDBG_LIST(class) /* {{{ */ return SUCCESS; } /* }}} */ -void phpdbg_list_file(const char *filename, uint count, uint offset, uint highlight TSRMLS_DC) /* {{{ */ +void phpdbg_list_file(const char *filename, uint count, int offset, uint highlight TSRMLS_DC) /* {{{ */ { uint line, lastline; phpdbg_file_source **data; diff --git a/phpdbg_list.h b/phpdbg_list.h index 385ae20580..c88328bfea 100644 --- a/phpdbg_list.h +++ b/phpdbg_list.h @@ -34,7 +34,7 @@ PHPDBG_LIST(func); void phpdbg_list_function_byname(const char *, size_t TSRMLS_DC); void phpdbg_list_function(const zend_function* TSRMLS_DC); -void phpdbg_list_file(const char*, uint, uint, uint TSRMLS_DC); +void phpdbg_list_file(const char*, uint, int, uint TSRMLS_DC); extern const phpdbg_command_t phpdbg_list_commands[];