From 94ecb5a75f9bb0d2cedded28e0bb8a4b92916e86 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Fri, 22 Nov 2013 20:42:57 +0000 Subject: [PATCH] fix windows build --- phpdbg_info.c | 2 +- phpdbg_opcode.c | 2 +- phpdbg_prompt.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/phpdbg_info.c b/phpdbg_info.c index 4b98267ab0..ed63cad714 100644 --- a/phpdbg_info.c +++ b/phpdbg_info.c @@ -151,7 +151,7 @@ PHPDBG_INFO(literal) /* {{{ */ { if ((EG(in_execution) && EG(active_op_array)) || PHPDBG_G(ops)) { zend_op_array *ops = EG(active_op_array) ? EG(active_op_array) : PHPDBG_G(ops); - zend_uint literal =0, count = ops->last_literal-1; + int literal =0, count = ops->last_literal-1; if (ops->function_name) { if (ops->scope) { diff --git a/phpdbg_opcode.c b/phpdbg_opcode.c index 74b0c7e0e3..d01f08c229 100644 --- a/phpdbg_opcode.c +++ b/phpdbg_opcode.c @@ -27,7 +27,7 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg); static inline zend_uint phpdbg_decode_literal(zend_op_array *ops, zend_literal *literal TSRMLS_DC) /* {{{ */ { - zend_uint iter = 0; + int iter = 0; while (iter < ops->last_literal) { if (literal == &ops->literals[iter]) { diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 98c79cf361..53c6bb2ad3 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -1094,10 +1094,11 @@ static inline int phpdbg_call_register(phpdbg_input_t *input TSRMLS_DC) /* {{{ * int phpdbg_interactive(TSRMLS_D) /* {{{ */ { int ret = SUCCESS; - + phpdbg_input_t *input; + PHPDBG_G(flags) |= PHPDBG_IS_INTERACTIVE; - phpdbg_input_t *input = phpdbg_read_input(NULL TSRMLS_CC); + input = phpdbg_read_input(NULL TSRMLS_CC); if (input && input->length > 0L) { do { -- 2.50.1