diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-07-11 23:28:14 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-07-11 23:58:20 +0200 |
commit | b00376884e00aa04614dd650e119aad653c1f16b (patch) | |
tree | 9531526edb549ef5eae6ada0d6a6969dfe085e46 /sapi/phpdbg/phpdbg_list.c | |
parent | 1223f7f91b63d37c1282c05c0fab5a16bc83bbf1 (diff) | |
download | php-git-b00376884e00aa04614dd650e119aad653c1f16b.tar.gz |
Rewrite watchpoints to be much more stable
This mainly involves a separate abstraction layer for elements (e.g. $a->b) and watchpoints (on pointer of the Bucket for example).
Also better comparison handling (value backup vs. page dumps).
It is not yet finished (there are sometimes false positives announced and names not yet perfect), but the functionality is working and not crashing as far as I have tested.
Future scope is also relative watchpoints, e.g. "w $this->val expression()" which does not have the symbol tables as basis, but the value (in this example: return value of expression()) as basis.
Diffstat (limited to 'sapi/phpdbg/phpdbg_list.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_list.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sapi/phpdbg/phpdbg_list.c b/sapi/phpdbg/phpdbg_list.c index ca73209114..86a2132b74 100644 --- a/sapi/phpdbg/phpdbg_list.c +++ b/sapi/phpdbg/phpdbg_list.c @@ -372,22 +372,9 @@ zend_op_array *phpdbg_compile_string(zval *source_string, char *filename) { return op_array; } -void phpdbg_free_file_source(zval *zv) { - phpdbg_file_source *data = Z_PTR_P(zv); - - if (data->buf) { - efree(data->buf); - } - - destroy_op_array(&data->op_array); - - efree(data); -} - void phpdbg_init_list(void) { PHPDBG_G(compile_file) = zend_compile_file; PHPDBG_G(compile_string) = zend_compile_string; - zend_hash_init(&PHPDBG_G(file_sources), 1, NULL, (dtor_func_t) phpdbg_free_file_source, 0); zend_compile_file = phpdbg_compile_file; zend_compile_string = phpdbg_compile_string; } |