summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg_list.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r--sapi/phpdbg/phpdbg_list.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c
index 037c6c38b2..55fc3dfeba 100644
--- a/sapi/phpdbg/phpdbg_list.c
+++ b/sapi/phpdbg/phpdbg_list.c
@@ -124,12 +124,12 @@ PHPDBG_LIST(class) /* {{{ */
return SUCCESS;
} /* }}} */
-void phpdbg_list_file(const char *filename, long count, long offset, int highlight TSRMLS_DC) /* {{{ */
+void phpdbg_list_file(const char *filename, php_int_t count, php_int_t offset, php_int_t highlight TSRMLS_DC) /* {{{ */
{
- struct stat st;
+ zend_stat_t st;
char *opened = NULL;
char buffer[8096] = {0,};
- long line = 0;
+ php_int_t line = 0;
php_stream *stream = NULL;
@@ -151,12 +151,12 @@ void phpdbg_list_file(const char *filename, long count, long offset, int highlig
if (!offset || offset <= line) {
/* Without offset, or offset reached */
if (!highlight) {
- phpdbg_write("%05ld: %s", line, buffer);
+ phpdbg_write("%05" ZEND_INT_FMT_SPEC ": %s", line, buffer);
} else {
if (highlight != line) {
- phpdbg_write(" %05ld: %s", line, buffer);
+ phpdbg_write(" %05" ZEND_INT_FMT_SPEC ": %s", line, buffer);
} else {
- phpdbg_write(">%05ld: %s", line, buffer);
+ phpdbg_write(">%05" ZEND_INT_FMT_SPEC ": %s", line, buffer);
}
}
}