diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-03-21 20:36:30 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-03-21 23:16:53 +0100 |
commit | 97887e37168c73fb028a4b58bf59010e6217ef7b (patch) | |
tree | 158498e3006c60205f350fdb34b82947629dc6c5 /sapi/phpdbg/phpdbg_watch.h | |
parent | f01071f55f0128a920c9625f88ef4ffe35922298 (diff) | |
download | php-git-97887e37168c73fb028a4b58bf59010e6217ef7b.tar.gz |
Stabilize (simple) watchpoints with IS_INDIRECT/IS_REFERENCE situations
Diffstat (limited to 'sapi/phpdbg/phpdbg_watch.h')
-rw-r--r-- | sapi/phpdbg/phpdbg_watch.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sapi/phpdbg/phpdbg_watch.h b/sapi/phpdbg/phpdbg_watch.h index 2736b1df64..d101ab116d 100644 --- a/sapi/phpdbg/phpdbg_watch.h +++ b/sapi/phpdbg/phpdbg_watch.h @@ -21,7 +21,6 @@ #ifndef PHPDBG_WATCH_H #define PHPDBG_WATCH_H -#include "TSRM.h" #include "phpdbg_cmd.h" #ifdef _WIN32 @@ -41,6 +40,7 @@ extern const phpdbg_command_t phpdbg_watch_commands[]; /* Watchpoint functions/typedefs */ +/* References are managed through their parent zval *, being a simple WATCH_ON_ZVAL and eventually WATCH_ON_REFCOUNTED */ typedef enum { WATCH_ON_ZVAL, WATCH_ON_HASHTABLE, @@ -66,11 +66,10 @@ struct _phpdbg_watchpoint_t { phpdbg_watchtype type; char flags; phpdbg_watchpoint_t *parent; + phpdbg_watchpoint_t *reference; HashTable *parent_container; - char *name_in_parent; - size_t name_in_parent_len; - char *str; - size_t str_len; + zend_string *name_in_parent; + zend_string *str; }; typedef struct { |