diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-22 18:11:35 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-22 18:11:35 +0200 |
commit | 3cc02533ae2022aa987ddf4cd372afbb472e4e91 (patch) | |
tree | 67351f73f67b87c0d88b931601dbb31af1526c5e /sapi/phpdbg/phpdbg_list.c | |
parent | b6936adb58288a0606ed847802d9226cddb41e2b (diff) | |
download | php-git-3cc02533ae2022aa987ddf4cd372afbb472e4e91.tar.gz |
Add phpdbg_get_executable() (gets executable ops/lines)
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |