From 3cc02533ae2022aa987ddf4cd372afbb472e4e91 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Wed, 22 Jul 2015 18:11:35 +0200 Subject: Add phpdbg_get_executable() (gets executable ops/lines) --- sapi/phpdbg/phpdbg_list.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sapi/phpdbg/phpdbg_list.c') diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index 7b1bc8783b..a2f5ff6cc5 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -288,6 +288,9 @@ zend_op_array *phpdbg_compile_file(zend_file_handle *file, int type) { fake.opened_path = NULL; zend_file_handle_dtor(&fake); + dataptr->op_array = ret; + ++*dataptr->op_array->refcount; + return ret; } @@ -301,6 +304,10 @@ void phpdbg_free_file_source(phpdbg_file_source *data) { efree(data->buf); } + if (destroy_op_array(data->op_array)) { + efree(data->op_array); + } + efree(data); } -- cgit v1.2.1