diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-31 02:05:49 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-31 02:06:03 +0200 |
commit | 1da4ee25b89a668d55064f6cbfd62fcf1c9d00ef (patch) | |
tree | 328a37f388101805ccc8da6f037c19bb2dfbec85 /sapi/phpdbg/phpdbg_opcode.c | |
parent | 57247f01f74acf55cbe6fb2ee2c117d6db3848db (diff) | |
download | php-git-1da4ee25b89a668d55064f6cbfd62fcf1c9d00ef.tar.gz |
Fix oplog trace with already freed closures
Diffstat (limited to 'sapi/phpdbg/phpdbg_opcode.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_opcode.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_opcode.c b/sapi/phpdbg/phpdbg_opcode.c index 092fcb985c..8b6c964343 100644 --- a/sapi/phpdbg/phpdbg_opcode.c +++ b/sapi/phpdbg/phpdbg_opcode.c @@ -202,11 +202,17 @@ void phpdbg_print_opline_ex(zend_execute_data *execute_data, zend_bool ignore_fl if (PHPDBG_G(oplog_list)) { phpdbg_oplog_entry *cur = zend_arena_alloc(&PHPDBG_G(oplog_arena), sizeof(phpdbg_oplog_entry)); + zend_op_array *op_array = &execute_data->func->op_array; cur->op = (zend_op *) execute_data->opline; - cur->op_array = &execute_data->func->op_array; + cur->opcodes = op_array->opcodes; + cur->filename = op_array->filename; + cur->scope = op_array->scope; + cur->function_name = op_array->function_name; cur->next = NULL; PHPDBG_G(oplog_cur)->next = cur; PHPDBG_G(oplog_cur) = cur; +if (!execute_data->func->op_array.filename) +printf("ALETR"); } } /* }}} */ |