From eaf5d892928f7ca4af42cdd98bfb9f0f9adc06d3 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 10 Nov 2013 18:10:54 -0200 Subject: [PATCH] - Change breakpoint id to int --- phpdbg.h | 2 +- phpdbg_bp.c | 1 + phpdbg_bp.h | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/phpdbg.h b/phpdbg.h index c2f949bc89..c5f6104cef 100644 --- a/phpdbg.h +++ b/phpdbg.h @@ -51,7 +51,7 @@ ZEND_BEGIN_MODULE_GLOBALS(phpdbg) size_t exec_len; /* size of exec */ zend_op_array *ops; /* op_array */ zval *retval; /* return value */ - size_t bp_count; /* breakpoint count */ + int bp_count; /* breakpoint count */ int stepping; /* stepping */ int vmret; /* return from last opcode handler execution */ zend_bool has_file_bp; /* file-based breakpoint has been set */ diff --git a/phpdbg_bp.c b/phpdbg_bp.c index 2db30d3366..7114ff0530 100644 --- a/phpdbg_bp.c +++ b/phpdbg_bp.c @@ -19,6 +19,7 @@ #include "zend.h" #include "zend_hash.h" +#include "zend_llist.h" #include "phpdbg.h" #include "phpdbg_bp.h" diff --git a/phpdbg_bp.h b/phpdbg_bp.h index e8cb84b92e..38b9c6174c 100644 --- a/phpdbg_bp.h +++ b/phpdbg_bp.h @@ -26,7 +26,7 @@ typedef struct _phpdbg_breakfile_t { const char *filename; long line; - size_t id; + int id; } phpdbg_breakfile_t; /** @@ -35,7 +35,7 @@ typedef struct _phpdbg_breakfile_t { typedef struct _phpdbg_breaksymbol_t { const char *symbol; long opline_num; - size_t id; + int id; } phpdbg_breaksymbol_t; void phpdbg_set_breakpoint_file(const char*, const char* TSRMLS_DC); -- 2.50.1